SetIconEnabled() private method

private SetIconEnabled ( int classID, string scriptClass, int iconEnabled ) : void
classID int
scriptClass string
iconEnabled int
return void
Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 private void SetIconState(AInfo ainfo)
 {
     AnnotationUtility.SetIconEnabled(ainfo.m_ClassID, ainfo.m_ScriptClass, (!ainfo.m_IconEnabled) ? 0 : 1);
     SceneView.RepaintAll();
 }
Ejemplo n.º 3
0
 public static void SetIconEnabled(Type type, bool enabled)
 {
     GetAnnotationIdAndClass(type, out var id, out var name);
     AnnotationUtility.SetIconEnabled(id, name, enabled ? 1 : 0);
 }