(MIGRATION END) Change namespaces
This commit is contained in:
@@ -6,7 +6,7 @@ using VRC.SDK3.Avatars.Components;
|
||||
using UnityEditor;
|
||||
using UnityEditor.Animations;
|
||||
using AnimatorAsCode.V1.VRCDestructiveWorkflow;
|
||||
using AnimatorAsCode.V1VRC;
|
||||
using AnimatorAsCode.V1.VRC;
|
||||
|
||||
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,5 +1,5 @@
|
||||
// ReSharper disable once CheckNamespace
|
||||
namespace AnimatorAsCode.V1VRC
|
||||
namespace AnimatorAsCode.V1.VRC
|
||||
{
|
||||
public enum TrackingElement
|
||||
{
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
using System;
|
||||
using AnimatorAsCode.V1;
|
||||
using VRC.SDK3.Avatars.Components;
|
||||
using VRC.SDKBase;
|
||||
|
||||
// ReSharper disable once CheckNamespace
|
||||
namespace AnimatorAsCode.V1VRC
|
||||
namespace AnimatorAsCode.V1.VRC
|
||||
{
|
||||
public static class VRChatExtensions
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using AnimatorAsCode.V1VRC;
|
||||
using AnimatorAsCode.V1.VRC;
|
||||
using NUnit.Framework;
|
||||
using VRC.SDK3.Avatars.Components;
|
||||
using VRC.SDKBase;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using AnimatorAsCode.V1VRC;
|
||||
using AnimatorAsCode.V1.VRC;
|
||||
using NUnit.Framework;
|
||||
using VRC.SDK3.Avatars.Components;
|
||||
using VRC.SDKBase;
|
||||
|
||||
Reference in New Issue
Block a user