|
I made a custom window for the editor, but I can't figure out how to create a window where a texture can be plugged in.
(comments are locked)
|
|
Figured it out, needed to change object type from object to texture2d
(comments are locked)
|
|
read these: http://unity3d.com/support/documentation/ScriptReference/EditorGUIUtility.FindTexture.html http://unity3d.com/support/documentation/ScriptReference/EditorGUI.DrawPreviewTexture.html that should help. Is this what the editor gui uses? It doesn't seem so.
Jun 03 '11 at 03:24 PM
Johan 4
(comments are locked)
|
|
heres how I got it to work (C #) Texture2D backgroundImage; OnGUI(){ backgroundImage = (Texture2D) EditorGUILayout.ObjectField("Image", backgroundImage, typeof (Texture2D), false); }
(comments are locked)
|
