mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 08:18:49 -05:00
23 lines
565 B
C#
23 lines
565 B
C#
using System;
|
|
using TriInspector;
|
|
using UnityEngine;
|
|
|
|
[DeclareFoldoutGroup("My Foldout", Expanded = true)]
|
|
[DeclareFoldoutGroup("boxed_foldout_struct", Title = "Foldout Struct")]
|
|
public class Groups_FoldoutGroupSample : ScriptableObject
|
|
{
|
|
[Group("My Foldout")] public string c;
|
|
[Group("My Foldout")] public bool d;
|
|
|
|
[Group("boxed_foldout_struct"), InlineProperty, HideLabel]
|
|
public MyStruct boxedStruct;
|
|
|
|
public MyStruct defaultStruct;
|
|
|
|
[Serializable]
|
|
public struct MyStruct
|
|
{
|
|
public int a;
|
|
public float b;
|
|
}
|
|
} |