shity basic one shot
This commit is contained in:
+25
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "AacEditModeTests",
|
||||
"references": [
|
||||
"UnityEngine.TestRunner",
|
||||
"UnityEditor.TestRunner",
|
||||
"AnimatorAsCode.V1"
|
||||
],
|
||||
"includePlatforms": [
|
||||
"Editor"
|
||||
],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": true,
|
||||
"precompiledReferences": [
|
||||
"nunit.framework.dll",
|
||||
"VRCSDKBase.dll",
|
||||
"VRCSDK3A.dll"
|
||||
],
|
||||
"autoReferenced": false,
|
||||
"defineConstraints": [
|
||||
"UNITY_INCLUDE_TESTS"
|
||||
],
|
||||
"versionDefines": [],
|
||||
"noEngineReferences": false
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f6d7b26bd3d18d448aa7b4c9bf477b5f
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
using System;
|
||||
using AnimatorAsCode.V1;
|
||||
using NUnit.Framework;
|
||||
using UnityEditor;
|
||||
using UnityEditor.Animations;
|
||||
using UnityEngine;
|
||||
using Object = UnityEngine.Object;
|
||||
|
||||
namespace av3_animator_as_code.Tests.V1.EditMode
|
||||
{
|
||||
public abstract class AbstractSimpleSingleLayerAnimatorInternalEditModeAC
|
||||
{
|
||||
protected GameObject _root;
|
||||
private AnimatorController _container;
|
||||
private string _containerPath;
|
||||
|
||||
[SetUp]
|
||||
public void SetUp()
|
||||
{
|
||||
_root = new GameObject("Root");
|
||||
_container = new AnimatorController();
|
||||
_containerPath = $"Assets/temp_aac_test__{Guid.NewGuid()}.asset";
|
||||
AssetDatabase.CreateAsset(_container, _containerPath);
|
||||
}
|
||||
|
||||
[TearDown]
|
||||
public void TearDown()
|
||||
{
|
||||
Object.DestroyImmediate(_root);
|
||||
AssetDatabase.DeleteAsset(_containerPath);
|
||||
_root = null;
|
||||
_container = null;
|
||||
_containerPath = null;
|
||||
}
|
||||
|
||||
protected AacFlBase TestAac()
|
||||
{
|
||||
return AacV1.Create(new AacConfiguration
|
||||
{
|
||||
AnimatorRoot = _root.transform,
|
||||
AssetContainer = _container,
|
||||
AssetKey = "None",
|
||||
DefaultsProvider = new AacDefaultsProvider(),
|
||||
SystemName = "Test",
|
||||
DefaultValueRoot = _root.transform
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6e75867890d38584aa62fd9133251612
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user