Quantcast
Channel: UGUI & TextMesh Pro
Viewing all articles
Browse latest Browse all 23263

How do i toggle a button false/true according to EditorGUILayout.TextField empty/with text ?

$
0
0
Code (csharp):
  1.  
  2. using UnityEngine;
  3. using UnityEditor;
  4. using System.Collections;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System;
  8.  
  9. public class Sorting : EditorWindow
  10. {
  11.     string objectsName;
  12.     bool groupEnabled;
  13.     bool myBool = true;
  14.     float myFloat = 1.23f;
  15.  
  16.     // Add menu named "Objects" to the GameObject menu
  17.     [MenuItem("GameObject/Objects")]
  18.     static void Init()
  19.     {
  20.         // Get existing open window or if none, make a new one:
  21.         Sorting window =...
How do i toggle a button false/true according to EditorGUILayout.TextField empty/with text ?

Viewing all articles
Browse latest Browse all 23263

Trending Articles