28 lines
815 B
C#
28 lines
815 B
C#
|
|
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;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|