Example #1
0
 private void OnFocalClicked()
 {
     focalActionSelected = Selection.IsSelected(gameObject);
     if (!focalActionSelected)
     {
         Selection.AddToSelection(gameObject);
     }
     focalValueCommand = new CommandSetValue <float>("Camera Focal", "/CameraController/focal");
 }
Example #2
0
        public void OnGlobalCastShadowCheckboxPressed()
        {
            // Get all lights
            LightController[] lightControllers = FindObjectsOfType <LightController>() as LightController[];
            List <GameObject> lights           = new List <GameObject>();

            foreach (LightController lightController in lightControllers)
            {
                lights.Add(lightController.gameObject);
            }

            // Create command for all the lights (not only selected ones)
            parameterCommand = new CommandSetValue <bool>(lights, "Light Cast Shadows", "/LightController/CastShadows");
        }