SetIconEnabled() private method

private SetIconEnabled ( int classID, string scriptClass, int iconEnabled ) : void
classID int
scriptClass string
iconEnabled 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);
        }
コード例 #2
0
 private void SetIconState(AInfo ainfo)
 {
     AnnotationUtility.SetIconEnabled(ainfo.m_ClassID, ainfo.m_ScriptClass, (!ainfo.m_IconEnabled) ? 0 : 1);
     SceneView.RepaintAll();
 }
コード例 #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);
 }