(MIGRATION END) Change namespaces

This commit is contained in:
Haï~
2023-10-02 04:48:23 +02:00
parent 6c00522b62
commit 3f5fd7aff7
7 changed files with 63 additions and 6 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ using VRC.SDK3.Avatars.Components;
using UnityEditor; using UnityEditor;
using UnityEditor.Animations; using UnityEditor.Animations;
using AnimatorAsCode.V1.VRCDestructiveWorkflow; using AnimatorAsCode.V1.VRCDestructiveWorkflow;
using AnimatorAsCode.V1VRC; using AnimatorAsCode.V1.VRC;
namespace AnimatorAsCodeFramework.Examples namespace AnimatorAsCodeFramework.Examples
{ {
@@ -0,0 +1,55 @@
#if UNITY_EDITOR
using AnimatorAsCode.V1;
using UnityEngine;
using VRC.SDK3.Avatars.Components;
using UnityEditor;
using UnityEditor.Animations;
namespace AnimatorAsCodeFramework.Examples
{
public class GenExample4_NonDestructiveWorkflow : MonoBehaviour
{
public VRCAvatarDescriptor avatar;
public AnimatorController assetContainer;
public string assetKey;
public SkinnedMeshRenderer iconMesh;
}
[CustomEditor(typeof(GenExample4_NonDestructiveWorkflow), true)]
public class GenExample4_NonDestructiveWorkflowEditor : Editor
{
private const string SystemName = "Example 3";
private GenExample4_NonDestructiveWorkflow my;
private AacFlBase aac;
public override void OnInspectorGUI()
{
AacExample.InspectorTemplate(this, serializedObject, "assetKey", Create, Remove);
}
private void Create()
{
my = (GenExample4_NonDestructiveWorkflow) target;
aac = AacExample.AnimatorAsCode(SystemName, my.avatar, my.assetContainer, my.assetKey);
CreateMainLayer();
}
private void Remove()
{
// AacExample.AnimatorAsCode invokes ClearPreviousAssets.
// This will cause the generated controller to be removed.
AacExample.AnimatorAsCode(SystemName, my.avatar, my.assetContainer, my.assetKey);
}
private void CreateMainLayer()
{
// TODO
// var fx = aac.NewAnimatorController();
// var layer = fx.CreateLayer();
// ...
}
}
}
#endif
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: e6458c1a918843d6b2a91932ddf9d0a5
timeCreated: 1693750693
+1 -1
View File
@@ -1,5 +1,5 @@
// ReSharper disable once CheckNamespace // ReSharper disable once CheckNamespace
namespace AnimatorAsCode.V1VRC namespace AnimatorAsCode.V1.VRC
{ {
public enum TrackingElement public enum TrackingElement
{ {
+1 -2
View File
@@ -1,10 +1,9 @@
using System; using System;
using AnimatorAsCode.V1;
using VRC.SDK3.Avatars.Components; using VRC.SDK3.Avatars.Components;
using VRC.SDKBase; using VRC.SDKBase;
// ReSharper disable once CheckNamespace // ReSharper disable once CheckNamespace
namespace AnimatorAsCode.V1VRC namespace AnimatorAsCode.V1.VRC
{ {
public static class VRChatExtensions public static class VRChatExtensions
{ {
@@ -1,4 +1,4 @@
using AnimatorAsCode.V1VRC; using AnimatorAsCode.V1.VRC;
using NUnit.Framework; using NUnit.Framework;
using VRC.SDK3.Avatars.Components; using VRC.SDK3.Avatars.Components;
using VRC.SDKBase; using VRC.SDKBase;
@@ -1,4 +1,4 @@
using AnimatorAsCode.V1VRC; using AnimatorAsCode.V1.VRC;
using NUnit.Framework; using NUnit.Framework;
using VRC.SDK3.Avatars.Components; using VRC.SDK3.Avatars.Components;
using VRC.SDKBase; using VRC.SDKBase;