mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 00:08:51 -05:00
30 lines
765 B
C#
30 lines
765 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using TriInspector;
|
|
using UnityEngine;
|
|
|
|
public class Collections_ListDrawerSettingsSample : ScriptableObject
|
|
{
|
|
[ListDrawerSettings(Draggable = true,
|
|
HideAddButton = false,
|
|
HideRemoveButton = false,
|
|
AlwaysExpanded = false)]
|
|
public List<Material> list;
|
|
|
|
[ListDrawerSettings(Draggable = false, AlwaysExpanded = true)]
|
|
public Vector3[] vectors;
|
|
|
|
[ListDrawerSettings(ShowElementLabels = true)]
|
|
public MyStruct[] namedStructs = new MyStruct[]
|
|
{
|
|
new MyStruct {name = "First", value = 1},
|
|
new MyStruct {name = "Second", value = 2,},
|
|
};
|
|
|
|
[Serializable]
|
|
public struct MyStruct
|
|
{
|
|
public string name;
|
|
public int value;
|
|
}
|
|
} |