123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
- using UnityEditor;
- using UnityEditor.SceneManagement;
- using UnityEngine;
- using UnityEngine.Events;
- using UnityEngine.UI;
- using SC.XR.Unity;
- public class SCInputFieldTool : Editor
- {
- [MenuItem("Tools/SCInputField => SCInputField")]
- private static void ChangeSCInputFieldColor()
- {
- if (Selection.objects.Length > 0)
- {
- for (int i = 0; i < Selection.objects.Length; i++)
- {
- if ((Selection.objects[i] as GameObject).GetComponent<SC.XR.Unity.SCInputField>())
- {
- GameObject obj = Selection.objects[i] as GameObject;
- SC.XR.Unity.SCInputField o_SCInputField = obj.GetComponent<SC.XR.Unity.SCInputField>();
- GameObject o = new GameObject();
-
- DestroyImmediate(o);
- }
- }
- }
- }
- }
|