Firstborn/Library/PackageCache/com.unity.addressables@1.19.19/Tests/Runtime/TestObjectWithSerializableF...

23 lines
602 B
C#
Raw Normal View History

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
{
}
}