For an overview of Resources, click here.
Overview
The Set Object Properties resource changes the specific properties of a scene object. This resource can be used to make a scene object visible or not, or, change the light properties of a light asset.
Required Fields
Field Name | Description |
---|---|
World Objects | Specifies the objects in the scene to be modified |
Property | Specifies the property to be changed. There are two different types of properties that can be changed: Visibility, and Light properties. The Visibility property, when unchecked, can make a scene object invisible. Though the object is still in the scene, it cannot be seen by the learner. The Light property can be used to change the light properties of a light asset (will not work on other assets). The author can adjust the light's intensity, color, and range. |
Events
Using End Script Resource
If you use an End Script Resource in the same script as this resource, the Set Object Properties resource will close. For example, if you set an object up to be invisible and then there is an End Script Resource in the same script, the object will become visible again as soon as the frame with the End Script Resource fires. An alternative to using the End Script Resource is to create a custom event marking the end of the script and then use that event as a condition where needed in other scripts.
To learn more about Finishing Scripts, click here.
Examples
Here are a few different ways you can use this resource.
In the workshop scenario, I want to make the safety hat invisible to the learner and I want a green light to emit from the light fixture.
Add the Set Object Properties Resource. For the Safety Hat, I set the World Object as the hat and chose the Visibility option. Then, I left the Visibility box unchecked (this means invisible).
For the light asset, I set the World Object as the lights, chose Light Properties from the Properties list, and then determined my light properties:
After saving and testing in the headset, this was the result:
Another example is make items the learner is wearing invisible.
PPE items such as the safety vest behave differently in the scenario based on a learner’s height or stature. You may find that after donning the vest or other item that it obstructs your view of tasks in the scene. You do have the ability to make these PPE items invisible after putting them on.
Add the Set Object Properties Resource and fill it out:
Here is the before and after: