SetGizmoEnabled() private method

private SetGizmoEnabled ( int classID, string scriptClass, int gizmoEnabled ) : void
classID int
scriptClass string
gizmoEnabled int
return 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);
        }
 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);
 }