Create Damage Num

STD Library
Client Side
Both Mobile and PC

Create damage tick

Declaration

func CreateDamageNum(content string, fontSize int, fontColor Color, duration int, target entity<Entity>, offset Vector3, randomRange Vector2, doTween bool)
go

Parameters

Input

Name Type Description
Content String Tick content
Font Size Int Font size
Font Color Color Font Color
Duration (ms) Int Dwell time, in milliseconds
Target Entity Entity that takes damage
Offset Vector3 The offset of the damage tick relative to the target entity’s world coordinates
Random Range Vector2 The range of random position correction at the damage tick position
Do Tween Bool Whether to perform interpolation animation