blob: ee4c21e322391d6bc8137c66d3260d883a3e44e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using System.Collections;
using AdvancedInspector;
// Usually in Unity using the preview window at the bottom of the Inspector is a daunting task.
// With Advanced Inspector, you simply implement the IPrewiew interface... and that's it!
[AdvancedInspector]
public class AIExample28_Preview : MonoBehaviour, IPreview
{
[Inspect]
public UnityEngine.Object[] myPreviewList;
// The IPreview interface only has one property getter;
// If you pass null or an empty collection, the preview section is hidden.
public UnityEngine.Object[] Preview
{
get { return myPreviewList; }
}
}
|