Example 1 TMP

Example 1 demonstrates how to use the 3D TextMesh Pro Actions from Action Pack 1. If you select the on Start Trigger from the Scene Hierarchy, you will see Actions 1 through 4. These are as follows:

Action 1: Display System Time. This Action will display the System Time with Seconds, wait for 1 Second, and then restart the Action. This has the affect of a Digital clock.

Action 2: Rotate 3D TextMeshPro. Here we rotate the three 3DTMP objects withing the scene (including the clock from Action 1 and Timer from Action 3), to face the Camera at all times. A restart Action is required for this to happen continuously.

Action 3: Display 3D Timer with Action. Create a 3D textMeshPro object in your scene and add the object into the Object field. We have set the before start value to zero, so it starts immediately, and the count down to 60 seconds. After the 60 seconds are complete (and displayed), we call another Action. The subsequent Action uses the same TMP object and writes "Timer Finished" in Blue to the 3D text.

Action 4: Custom Timer. This Action is not specific for TMP, but in this example we use it to change the contnt and color of a 3D TMP object. We have set a value of 3 seconds before start and a repeat interval with infinte loops also to 3 seconds. This will call Actions4Result Action every 3 Seconds. WIthin Action4Result, we change the color and content of the TMP object, wait for 1.5 seconds, and then change it back. This gives the affect of an animated text object changing every second and a half.

Last updated