- Home /
Customizing Editor Interface
Hi guys. I'm having some problems with customizing the editor interface. I want to write my own Custom Editor Script that would alter the look of Day/Night script. I know how to add boxes for floats, ints. etc. but I have no idea how to add a Material Selection Popup and a Game Object Selection Popup in the script. I would assume they are somewhere under EditorGUILayout. Unfortunately I cannot find them there. I'm trying to do this only to get sliders for adjusting values in my script. If there is an easy way of putting in sliders without messing out with the Custom Editor stuff I'd like to know that. I Hope I have explained myself well enough. Please comment if You have any more questions about it.
Thanks.
Kamil
EDIT:
ScreenShot Added.
I fixed your imageshack link. PROTIP. Imageshack is one of the worst websites on the whole internet. I recommend imgur.com.
Goodday Sir.
Answer by sneftel · Jun 22, 2011 at 04:52 PM
You can use EditorGUILayout.ObjectField
for these. Use the objType
parameter to specify what kind of object to filter on.
It's working now. Thank you. I did it like that:
target.illumObject = EditorGUILayout.ObjectField(target.illumObject, $$anonymous$$aterial);
Your answer
Follow this Question
Related Questions
Setting an object's material causes strange behavior in custom editor 0 Answers
Accessing All Selected Objects in OnSceneGUI 1 Answer
EditorGUI.Foldout consumes click so GUI.Button doesnt work when inside of foldout region. 1 Answer
BeginChangeCheck & EndChangeCheck not working? 1 Answer
How do I code my own custom built blend tree node as seen in the Animation Controller Editor Window? 1 Answer