special effects track||doc135646

September 20, 2022


 Blockman:trajectoryEffect(templateName, position, pitch, yaw, roll, duration, extendName) 
  • The class to which the function belongs:Blockman


Displays the track of the effect playback.


Variable name type Description
templateName string The pathname of the effect
position Vector3 The location of the effect
pitch float Pitch angle
yaw float yaw angle
roll float roll angle
duration int duration (milliseconds, 1000ms = 1 second)
extendName string extension name

Code Samples

Blockman.Instance():trajectoryEffect( "asset/Effect/sea.effect", { x = 0, y = 10, z = 0 }, 60, 45, 0, 1000)