chore: import upstream snapshot with attribution
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace MCPForUnityTests.Editor.Tools.Fixtures
|
||||
{
|
||||
[Serializable]
|
||||
public struct ManageScriptableObjectNestedData
|
||||
{
|
||||
public string note;
|
||||
}
|
||||
|
||||
// NOTE: File name matches class name so Unity can resolve a MonoScript asset for this ScriptableObject type.
|
||||
public class ManageScriptableObjectTestDefinition : ManageScriptableObjectTestDefinitionBase
|
||||
{
|
||||
[SerializeField] private string displayName;
|
||||
[SerializeField] private List<Material> materials = new();
|
||||
[SerializeField] private ManageScriptableObjectNestedData nested;
|
||||
|
||||
public string DisplayName => displayName;
|
||||
public IReadOnlyList<Material> Materials => materials;
|
||||
public string NestedNote => nested.note;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ba28697c0d65145a1ad753ef73c53185
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace MCPForUnityTests.Editor.Tools.Fixtures
|
||||
{
|
||||
// NOTE: File name matches class name so Unity can resolve a MonoScript asset for this ScriptableObject type.
|
||||
public class ManageScriptableObjectTestDefinitionBase : ScriptableObject
|
||||
{
|
||||
[SerializeField] private int baseNumber = 1;
|
||||
public int BaseNumber => baseNumber;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a757068d676ee47dba1045bfb8b8fb12
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e8f17bd366ad941fc95a0b60a727a90d
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
using UnityEngine;
|
||||
|
||||
[CreateAssetMenu(fileName = "ArrayStressSO", menuName = "StressTests/ArrayStressSO")]
|
||||
public class ArrayStressSO : ScriptableObject
|
||||
{
|
||||
public float[] floatArray = new float[3];
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9eec250e4deee48c69c12acfde8c2adc
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
using UnityEngine;
|
||||
using System.Collections.Generic;
|
||||
|
||||
[System.Serializable]
|
||||
public struct NestedData
|
||||
{
|
||||
public string id;
|
||||
public float value;
|
||||
public Vector3 position;
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
public class ComplexSubClass
|
||||
{
|
||||
public string name;
|
||||
public int level;
|
||||
public List<float> scores;
|
||||
}
|
||||
|
||||
public enum TestEnum
|
||||
{
|
||||
Alpha,
|
||||
Beta,
|
||||
Gamma
|
||||
}
|
||||
|
||||
[CreateAssetMenu(fileName = "ComplexStressSO", menuName = "StressTests/ComplexStressSO")]
|
||||
public class ComplexStressSO : ScriptableObject
|
||||
{
|
||||
[Header("Basic Types")]
|
||||
public int intValue;
|
||||
public float floatValue;
|
||||
public string stringValue;
|
||||
public bool boolValue;
|
||||
public Vector3 vectorValue;
|
||||
public Color colorValue;
|
||||
public TestEnum enumValue;
|
||||
|
||||
[Header("Arrays & Lists")]
|
||||
public int[] intArray;
|
||||
public List<string> stringList;
|
||||
public Vector3[] vectorArray;
|
||||
|
||||
[Header("Complex Types")]
|
||||
public NestedData nestedStruct;
|
||||
public ComplexSubClass nestedClass;
|
||||
public List<NestedData> nestedDataList;
|
||||
|
||||
[Header("Extended Types (Phase 6)")]
|
||||
public AnimationCurve animCurve;
|
||||
public Quaternion rotation;
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a73b1ff3fe1fa4b3fadb70c7c257d5a8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
using UnityEngine;
|
||||
using System.Collections.Generic;
|
||||
|
||||
[System.Serializable]
|
||||
public class Level3
|
||||
{
|
||||
public string detail;
|
||||
public Vector3 pos;
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
public class Level2
|
||||
{
|
||||
public string midName;
|
||||
public Level3 deep;
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
public class Level1
|
||||
{
|
||||
public string topName;
|
||||
public Level2 mid;
|
||||
}
|
||||
|
||||
[CreateAssetMenu(fileName = "DeepStressSO", menuName = "StressTests/DeepStressSO")]
|
||||
public class DeepStressSO : ScriptableObject
|
||||
{
|
||||
public Level1 level1;
|
||||
public Color overtone;
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cc8fe16aef3ae4cbc949300f5fed2187
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user