From ae98f77017360bbc1f95ab1c665d60bfa28b08a6 Mon Sep 17 00:00:00 2001 From: yuyu0127 Date: Sun, 17 Mar 2024 20:24:40 +0900 Subject: [PATCH] Add: Sample LabelText for list fields --- Alchemy/Assets/Alchemy/Samples~/Samples/Samples.unity | 6 ++++++ .../Samples~/Samples/Scripts/Decorations/LabelTextSample.cs | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/Alchemy/Assets/Alchemy/Samples~/Samples/Samples.unity b/Alchemy/Assets/Alchemy/Samples~/Samples/Samples.unity index 006df7f..3bdc873 100644 --- a/Alchemy/Assets/Alchemy/Samples~/Samples/Samples.unity +++ b/Alchemy/Assets/Alchemy/Samples~/Samples/Samples.unity @@ -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 diff --git a/Alchemy/Assets/Alchemy/Samples~/Samples/Scripts/Decorations/LabelTextSample.cs b/Alchemy/Assets/Alchemy/Samples~/Samples/Scripts/Decorations/LabelTextSample.cs index ee97e68..2230e74 100644 --- a/Alchemy/Assets/Alchemy/Samples~/Samples/Scripts/Decorations/LabelTextSample.cs +++ b/Alchemy/Assets/Alchemy/Samples~/Samples/Scripts/Decorations/LabelTextSample.cs @@ -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 fooList; + [LabelText("BAR LIST!")] public List barList; + [LabelText("BAZ LIST!")] public List bazList; } }