Adding an object property to the HUD element properties

 
 
 

You can customize the HUD element properties by adding a property of another asset under the Resources > Asset Browser > Templates directory.

NoteYou cannot add the properties of command objects under the Resources > Asset Browser > Templates > Commands directory, since they do not appear in the Resources > Properties directory.

Each property of an object is referred as object_name.property_name in the Properties window. For example, the Field Of View property of the stereoCamera object is referred as stereoCamera.Field Of View.

To add a property of another object to the HUD element properties:

  1. From the Resources > Asset Browser > Templates > Elements folder, drag and drop the stereoCamera object in the Viewer.

    The stereo camera appears in the Viewer.

  2. Create a Text HUD element called Camera FOV.
  3. From the Text HUD element properties, change the value of Y property to position of the text (Camera FOV) at the top of the stereo camera.
  4. By pressing the Ctrl key, click the Camera FOV HUD element in the Navigator window.

    Both the properties of the Camera FOV HUD element and the stereoCamera asset appear in the Resources > Properties window.

  5. Click the Field Of View property under the Resources > Properties > stereoCamera properties, and then drag it and drop on the Camera FOV HUD element properties.

    The Create 1 Reference Property contextual menu option appears.

  6. Click the contextual menu option to add the Field Of View property to the Camera FOV HUD element properties. The value of the Field Of View property appears in the Viewer.

    Viewer and Resources windows A. Field Of View property B. Field Of View property added to Camera FOV HUD element properties C. Field Of View property value

When you adjust the value of the Field Of View property, the change in value appears dynamically in the scene.

TipAlternatively, drag an object property from the Resources > Properties window and drop it on a HUD element in the Navigator window.

When you save a scene (in .fbx format), all the added HUD elements and their properties are also saved to reuse them in another scene.