Hello everyone.
I am a Korean student .
I am studying the Unity custom editor.
Custom editor is very difficult .
Because most of the references are in English.
My English skills are very low.
So I need your help.
My Ask

I want the result to the right of the above image .
I’ll show you my javascript .
SomeScript.js
#pragma strict
var testObject:GameObject[];
private var visibleObject:GameObject[];
var showObjects:boolean;
SomeScriptEditor.js
#pragma strict
@CustomEditor (SomeScript)
public class SomeScriptEditor extends Editor
{
function OnInspectorGUI()
{
DrawDefaultInspector();
var myScript : SomeScript = target;
if(myScript.showObjects)
{
EditorGUILayout.HelpBox("Please Help Me" , MessageType.Info);
}
}
}
What add in the above script?
How do I get the results of the right image above?
I need your help.
Please help me.
Thank you.