WuhuIslandTesting/Library/PackageCache/com.unity.addressables@1.21.12/Tests/Runtime/TestObjectWithSerializableField.cs
2025-01-07 02:06:59 +01:00

23 lines
610 B
C#

using System;
namespace UnityEngine.AddressableAssets.Tests
{
[CreateAssetMenu(order = 0, fileName = "towsf", menuName = "Test/TestObjectWithSerializableField")]
public class TestObjectWithSerializableField : ScriptableObject
{
[SerializeField]
private SerializableClass ByValueClass;
static public TestObjectWithSerializableField Create(string name)
{
var obj = CreateInstance<TestObjectWithSerializableField>();
obj.name = name;
return obj;
}
}
[Serializable]
public class SerializableClass
{
}
}