private SetGizmoEnabled ( int classID, string scriptClass, int gizmoEnabled ) : void | ||
classID | int | |
scriptClass | string | |
gizmoEnabled | int | |
Résultat | void |
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(); }
void SetGizmoState(AInfo ainfo, bool addToMostRecentChanged = true) { AnnotationUtility.SetGizmoEnabled(ainfo.m_ClassID, ainfo.m_ScriptClass, ainfo.m_GizmoEnabled ? 1 : 0, addToMostRecentChanged); SceneView.RepaintAll(); }
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); }