- Home /
show the image in inspector
Hi , I am new in unity, I want to show the image in an inspector as "Main Menu" show in uploaded, can anyone help me Thanks in advance
I think you're looking for editor scripting. Have a look here: https://docs.unity3d.com/ScriptReference/EditorGUI.DrawPreviewTexture.html
Answer by tanoshimi · May 10, 2017 at 02:58 PM
Create a custom editor for your class, and in the OnInspectorGUI() method, you can use GUI.DrawTexture to draw any texture you want to the component inspectpr pane.
Your answer
Follow this Question
Related Questions
when i build run for IOS then it shows error 0 Answers
PlayerPrefs not saving on Windows Devices but saving on Unity Editor and Android. 0 Answers
Hide GUI objects when going to the scene 0 Answers
List shows as empty when function is called with OnClick() 0 Answers
Unity Build not taking touch input. Game works fine in Unity Remote 0 Answers