Esempio n. 1
0
    protected virtual void OnEnable()
    {
        Color handleColor = Color.white;
        float handleAlpha = 0.1f;

        // arc handle has no radius handle by default
        m_ArcHandle.SetColorWithoutRadiusHandle(handleColor, handleAlpha);
    }
Esempio n. 2
0
        private void OnEnable()
        {
            m_ArcHandleLatN = new ArcHandle();
            m_ArcHandleLatN.SetColorWithoutRadiusHandle(new Color32(152, 237, 67, 255), 0.1f);
            m_ArcHandleLatN.radiusHandleColor = Color.white;

            m_ArcHandleLatS = new ArcHandle();
            m_ArcHandleLatS.SetColorWithoutRadiusHandle(new Color32(152, 237, 67, 255), 0.1f);
            m_ArcHandleLatS.radiusHandleColor = Color.white;

            m_ArcHandleLon = new ArcHandle();
            m_ArcHandleLon.SetColorWithoutRadiusHandle(new Color32(237, 67, 30, 255), 0.1f);
            m_ArcHandleLon.radiusHandleColor = Color.white;
        }
Esempio n. 3
0
        private void OnEnable()
        {
            m_Comp = (GridSensorComponent3D)target;
            Undo.undoRedoPerformed += OnUndoRedo;

            m_ArcHandleLatN = new ArcHandle();
            m_ArcHandleLatN.SetColorWithoutRadiusHandle(new Color32(152, 237, 67, 255), 0.1f);
            m_ArcHandleLatN.radiusHandleColor = Color.white;

            m_ArcHandleLatS = new ArcHandle();
            m_ArcHandleLatS.SetColorWithoutRadiusHandle(new Color32(152, 237, 67, 255), 0.1f);
            m_ArcHandleLatS.radiusHandleColor = Color.white;

            m_ArcHandleLon = new ArcHandle();
            m_ArcHandleLon.SetColorWithoutRadiusHandle(new Color32(237, 67, 30, 255), 0.1f);
            m_ArcHandleLon.radiusHandleColor = Color.white;
        }
        protected virtual void OnEnable()
        {
            m_Comp = (SpatialGridSensorComponent)target;
            Undo.undoRedoPerformed += OnUndoRedo;
            m_UpdateFlag            = true;

            m_ArcHandleLatN = new ArcHandle();
            m_ArcHandleLatN.SetColorWithoutRadiusHandle(new Color32(152, 237, 67, 255), 0.1f);
            m_ArcHandleLatN.radiusHandleColor = Color.white;

            m_ArcHandleLatS = new ArcHandle();
            m_ArcHandleLatS.SetColorWithoutRadiusHandle(new Color32(152, 237, 67, 255), 0.1f);
            m_ArcHandleLatS.radiusHandleColor = Color.white;

            m_ArcHandleLon = new ArcHandle();
            m_ArcHandleLon.SetColorWithoutRadiusHandle(new Color32(237, 67, 30, 255), 0.1f);
            m_ArcHandleLon.radiusHandleColor = Color.white;

            CreateGLMaterial();
        }