- Home /
Show public GameObject prefab in EditorWindow
Hi,
I want to create a window with some buttons that when clicked instantiate a prefab. I have this working using a custom inspector but now want to have all this in a separate window.
I want to select which prefabs i want to add with: public GameObject myPrefab1; public GameObject myPrefab2;
The problem is that anything I create using public GameObject doesnt show up in my window so i can not drag my prefabs.
Thanks in advance.
Answer by komodor · Aug 26, 2014 at 01:47 PM
http://docs.unity3d.com/ScriptReference/AssetDatabase.FindAssets.html might help, if you use labels you can find anything you labeled :D
Your answer
Follow this Question
Related Questions
Custom Editor - Is there any way to detect whether the user is in Prefab editing mode? 1 Answer
Editor Window Views 0 Answers
Print to status bar. 0 Answers
Horizontal Line 12 Answers