blob: 1d1b509928c903f7c45963a0fd1e21ebb03b0fe1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using AdvancedInspector;
// As of version 1.52, Unity attributes are also supported.
// So you will have to change your code as little as possible.
public class AIExample0_UnityAttributes : MonoBehaviour
{
[Range(0, 10)]
public int rangeField;
[Header("This is a header")]
public int headerField;
[Tooltip("This is a tooltip")]
public int tooltipField;
[Space(10)]
public int spaceField;
[Multiline]
public string multilineField;
[TextArea]
public string textAreaField;
}
|