blob: d7b400f73a367c266b674d1eccdcea3149bb5521 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
using UnityEngine;
using System;
using System.Collections;
using AdvancedInspector;
[AdvancedInspector]
public class AIExample15_DontAllowSceneObject : MonoBehaviour
{
// "DontAllowSceneObject" does exactly what it means; it prevent this field from being able to target an object in the scene.
// It is useful if you want to force a user to target a prefab.
[Inspect, DontAllowSceneObject]
public GameObject myProjectObject;
// Fields that can target a scene object have the "picker" icon tool on its right.
[Inspect]
public GameObject mySceneObject;
}
|