SetGizmoEnabled() 개인적인 메소드

private SetGizmoEnabled ( int classID, string scriptClass, int gizmoEnabled ) : void
classID int
scriptClass string
gizmoEnabled int
리턴 void
예제 #1
0
        public static void ApplyGizmoInfo(GizmoInfo info, bool addToRecentlyChanged = true)
        {
            int gizmoEnabled = info.gizmoEnabled ? 1 : 0;

            AnnotationUtility.SetGizmoEnabled(info.classID, info.scriptClass, gizmoEnabled, addToRecentlyChanged);
            AnnotationUtility.SetIconEnabled(info.classID, info.scriptClass, info.iconEnabled ? 1 : 0);
        }
예제 #2
0
 private void SetGizmoState(AInfo ainfo)
 {
     AnnotationUtility.SetGizmoEnabled(ainfo.m_ClassID, ainfo.m_ScriptClass, (!ainfo.m_GizmoEnabled) ? 0 : 1);
     SceneView.RepaintAll();
 }
예제 #3
0
 void SetGizmoState(AInfo ainfo, bool addToMostRecentChanged = true)
 {
     AnnotationUtility.SetGizmoEnabled(ainfo.m_ClassID, ainfo.m_ScriptClass, ainfo.m_GizmoEnabled ? 1 : 0, addToMostRecentChanged);
     SceneView.RepaintAll();
 }
예제 #4
0
 public static void SetGizmoEnabled(Type type, bool enabled, bool addToRecentlyChanged = true)
 {
     GetAnnotationIdAndClass(type, out var id, out var name);
     AnnotationUtility.SetGizmoEnabled(id, name, enabled ? 1 : 0, addToRecentlyChanged);
 }