Exemple #1
0
    void SetGizmoType(int gtype)
    {
        NgAssembly.SetGizmosVisible(((GIZMO_TYPE)gtype) != GIZMO_TYPE.NONE);

        m_nGizmoTypeIndex = gtype;
//      FXMakerMain.inst.GetFXMakerMouse().SetHandControl(((GIZMO_TYPE)m_nGizmoTypeIndex) == GIZMO_TYPE.HAND);
        FXMakerMain.inst.GetFXMakerMouse().SetHandControl(true);

        EditorPrefs.SetInt("FXMakerGizmo.m_nGizmoTypeIndex", m_nGizmoTypeIndex);
        if (((GIZMO_TYPE)m_nGizmoTypeIndex) == GIZMO_TYPE.NONE)
        {
            FXMakerMain.inst.SetEmptyTooltip("");
        }
    }
Exemple #2
0
 void OnDisable()
 {
     NgAssembly.SetGizmosVisible(false);
 }