Scene Selectables
The Scene Selectables system allows the user to configure objects that are selectable in play mode. On selection a window is displayed allowing to manipulate certain predefined signals.
Last updated
The Scene Selectables system allows the user to configure objects that are selectable in play mode. On selection a window is displayed allowing to manipulate certain predefined signals.
Last updated
To add scene selection to your current scene, simply drag the SceneSelectables prefab into your scane hierarchy. The prefab can be found under Asstes/realvirtual/UIPrefabs/SceneSelectables.
The properties Active, Hover, Selected and Changed can be set in the inspector window of the SceneSelectionManager. changing these will change the overall look of the system. Moreover an icon can be defined. This icon will be displayed in the game view as button, allowing to enable and disable the scene selection.
To define a new selectable object, simply click "Add Selectable" in the inspector window and a new Gameobjkect will be added to your hierarchy under the SceneSelectables gameobject.
Each Selectable defines a single selectable object that can consist of multiple renderers. Each selectable object can then be interacted with separetly during play mode. To set up an adjust a selectable object simply click it and adjustments can be made in the inspector of the object.
Besides the display name and description, you can define which renderers are are part of the selectable object. Moreover, here you can define which signals can be modified while this selectable is active and selected during playmode.
Entering play mode, you will see a button with the icon defined earlier. When you click this button, the selectables will be highlighted.
Each selectable can then be clicked to open a window, showing the information defined earlier.
Here you are able to change the signals linked to this selectable. When the signals do not reflect their initial state, the selectable will be highlited in a different color.
To disable the SceneSelection, while keeping the current modifications, simply click the button showing the icon you defined earlier.
If your project has been upgraded to Unity 6 from an earlier version of Unity, Unity tends to activate compatibility mode for the Render Graph. To enable the highlights, compatibility mode needs to be turned off in the Project Settings under Graphics.