Add: Sample LabelText for list fields

This commit is contained in:
yuyu0127 2024-03-17 20:24:40 +09:00
parent 2f1e668c9c
commit ae98f77017
2 changed files with 11 additions and 0 deletions

View File

@ -1085,6 +1085,12 @@ MonoBehaviour:
foo: 0
bar: {x: 0, y: 0, z: 0}
baz: {fileID: 0}
fooList:
- 0
barList:
- {x: 0, y: 0, z: 0}
bazList:
- {fileID: 0}
--- !u!1 &801201066
GameObject:
m_ObjectHideFlags: 0

View File

@ -1,3 +1,4 @@
using System.Collections.Generic;
using UnityEngine;
using Alchemy.Inspector;
@ -8,5 +9,9 @@ namespace Alchemy.Samples
[LabelText("FOO!")] public float foo;
[LabelText("BAR!")] public Vector3 bar;
[LabelText("BAZ!")] public GameObject baz;
[LabelText("FOO LIST!")] public List<float> fooList;
[LabelText("BAR LIST!")] public List<Vector3> barList;
[LabelText("BAZ LIST!")] public List<GameObject> bazList;
}
}