x


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.alt text

more ▼

asked Jun 22 '11 at 04:41 PM

kamil.slawicki gravatar image

kamil.slawicki
36 9 10 14

I fixed your imageshack link. PROTIP. Imageshack is one of the worst websites on the whole internet. I recommend http://imgur.com.

Goodday Sir.

Jun 22 '11 at 05:03 PM flaviusxvii

thanks, will keep that in mind.

Jun 23 '11 at 08:29 AM kamil.slawicki
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

You can use EditorGUILayout.ObjectField for these. Use the objType parameter to specify what kind of object to filter on.

more ▼

answered Jun 22 '11 at 04:52 PM

sneftel gravatar image

sneftel
1.7k 7 9 20

It's working now. Thank you. I did it like that:

target.illumObject = EditorGUILayout.ObjectField(target.illumObject, Material);

Jun 23 '11 at 08:54 AM kamil.slawicki
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x813
x348
x131
x69
x48

asked: Jun 22 '11 at 04:41 PM

Seen: 1008 times

Last Updated: Jun 23 '11 at 08:54 AM