Exemple #1
0
        void OnEnable()
        {
            Tools.hidden = true;

            cameraPath = (CameraPath)target;

            nodesProp = serializedObject.FindProperty("nodes");
            edgesProp = serializedObject.FindProperty("edges");

            Undo.undoRedoPerformed     += Repaint;
            Selection.selectionChanged += Repaint;
        }
        public void updateSetting()
        {
            if (isSettingLocked || !proxyObject)
            {
                return;
            }

            CameraSetting nearestcameraSetting = CameraPath.shared().getNearestCameraSetting(proxyObject.position);

            if (nearestcameraSetting != null)
            {
                currentSetting = nearestcameraSetting;
            }
        }