Understanding Helper Scripts

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.

BLDR_AxisFaceCamera

This script makes the object always face the user's camera. It's handy for far-off sprites imitating real objects.

BLDR_EnableDisableObjectByCameraDistance

This script allows an object to switch on/off based on its distance from the user.

BLDR_FaceTargetTransform

With this script, an object will always face another object.

BLDR_MoveObjectBetweenTransforms

This script moves an object between two different positions. You can control it using Unity Events, such as with the BLDR_OnEnableInvokeUnityEvent script.

BLDR_OnEnableInvokeUnityEvent

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.

BLDR_PerformanceFPSTracker

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.

BLDR_RotateTransform

This script continuously rotates an object by a given vector. It's useful for creating simple effects.

BLDR_TeleportMainCamera

When the user reaches a certain distance from this object, it will teleport them to a different transform in the world.

Last updated