mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 16:28:23 -05:00
25 lines
500 B
C#
25 lines
500 B
C#
|
using System;
|
|||
|
using TriInspector;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
public class Styling_TitleSample : ScriptableObject
|
|||
|
{
|
|||
|
[Title("My Title")]
|
|||
|
public string val;
|
|||
|
|
|||
|
[Title("$" + nameof(_myTitleField))]
|
|||
|
public Rect rect;
|
|||
|
|
|||
|
[Title("$" + nameof(MyTitleProperty))]
|
|||
|
public Vector3 vec;
|
|||
|
|
|||
|
[Title("Button Title")]
|
|||
|
[Button]
|
|||
|
public void MyButton()
|
|||
|
{
|
|||
|
}
|
|||
|
|
|||
|
private string _myTitleField = "Serialized Title";
|
|||
|
|
|||
|
private string MyTitleProperty => DateTime.Now.ToLongTimeString();
|
|||
|
}
|