blob: 4ddbe0b50d7050420c85ecf873b657e10d332e30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
using UnityEngine;
using System;
using System.Collections;
using AdvancedInspector;
[AdvancedInspector]
public class AIExample23_Space : MonoBehaviour
{
// For readability, it is often useful to add empty space between items.
// The Space attribute allows you to add empty space before or after an item.
[Inspect, AdvancedInspector.Spacing(Before = 10)]
public float myField;
// Because Unity now has a UnityEngine.Space type, you have to declare it as AdvancedInspector.Space
[Inspect, AdvancedInspector.Spacing(After = 10)]
public float MyProperty
{
get { return myField; }
set { myField = value; }
}
}
|