Create Damage Num

STD Library
Lado del cliente
Disponible en PC y móvil

Create damage tick

Declaración

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

Parámetros

Entrada

Nombre Tipo Descripción
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