UI3DCameraAimInputSystem
Enables UI interaction on 3D UI surfaces using camera aim targeting.
Create in the Editor
- Ensure there is a
UIControllerin the scene. - Create a GameObject and add
UIRect. - Add the
UI3DCameraAimInputSystemcomponent.
How to Use
- Get the component with
myObject.findComponent(UI3DCameraAimInputSystem.class). - Read and write the component properties to control behavior.
- Test input or layout in Play mode.
Java Example
SpatialObject myObject = /* your object */;
UI3DCameraAimInputSystem comp = myObject.findComponent(UI3DCameraAimInputSystem.class);
if (comp != null) {
// No exposed properties in the Java API
}