Maze / Library /PackageCache /com.unity.visualscripting@1.8.0 /Editor /VisualScripting.State /States /StateDescriptor.cs
| namespace Unity.VisualScripting | |
| { | |
| [] | |
| public class StateDescriptor<TState> : Descriptor<TState, StateDescription> | |
| where TState : class, IState | |
| { | |
| public StateDescriptor(TState target) : base(target) { } | |
| public TState state => target; | |
| [] | |
| public override string Title() | |
| { | |
| return state.GetType().HumanName(); | |
| } | |
| [] | |
| public override string Summary() | |
| { | |
| return state.GetType().Summary(); | |
| } | |
| [] | |
| [] | |
| public override EditorTexture Icon() | |
| { | |
| return state.GetType().Icon(); | |
| } | |
| } | |
| } | |