Understanding Helper Scripts
Last updated
Last updated
Helper Scripts are used to give your template scenes or objects more features, usually dynamic ones.
You can add these scripts to any objects you're creating in the SDK.
NOTE: The Helper Scripts usually have several variables that you need to link with other GameObjects in your scene. All variables in the SDK's Helper Scripts have tooltips for each variable to explain what each variable does. Just hover your mouse over the variable name in the Component Menu for the pop-up to appear.
This script makes the object always face the user's camera. It's handy for far-off sprites imitating real objects.
This script allows an object to switch on/off based on its distance from the user.
With this script, an object will always face another object.
This script moves an object between two different positions. You can control it using Unity Events, such as with the BLDR_OnEnableInvokeUnityEvent script.
Usually, this script is used together with other helper scripts, like BLDR_EnableDisableObjectByCameraDistance, to create advanced functions. Check out the ExampleDoorAnimation in the ExampleObjects folder to see how it works.
This script is part of the PerformanceUIObject and it measures the in-game FPS. You can drag and drop the example prefab into any scene to test it.
This script continuously rotates an object by a given vector. It's useful for creating simple effects.
When the user reaches a certain distance from this object, it will teleport them to a different transform in the world.