public override void OnInspectorGUI() { WebGLNativeInputField dialog = target as WebGLNativeInputField; serializedObject.Update(); EditorGUILayout.PropertyField(m_DialogType); EditorGUILayout.PropertyField(m_DialogTitle); if (dialog.m_DialogType == WebGLNativeInputField.EDialogType.OverlayHtml) { EditorGUILayout.PropertyField(m_DialogOkBtn); EditorGUILayout.PropertyField(m_DialogCancelBtn); } serializedObject.ApplyModifiedProperties(); base.OnInspectorGUI(); }
private void Awake() { webGLIF = GetComponent <WebGLNativeInputField>(); }