Create Self Relative

Playable
Tanto lado del cliente como del usuario
Disponible en PC y móvil

Create relative self-motion, the target entity changes each time relative to its current attribute value

Declaración

func CreateSelfRelative(target entity<Entity>, property Property, delta object, curve BezierCurve, style TweenStyle, duration float, out var createdEntity entity<SelfRelative>, autoPlay bool)
go

Parámetros

Entrada

Nombre Tipo Descripción
Target Entity Target Entity
Property Property Attribute that needs movement change
Delta Object The amount of change per movement
Curve BezierCurve Bezier curve control points
Style TweenStyle Single: Stop when the property changes by Delta
Loop: Repeat the movement, each time the property changes by Delta
Duration (ms) Float The duration of a change, in milliseconds
Auto Play Bool Whether to automatically start playing after creation

Afuera

Nombre Tipo Descripción
Created Entity PlayableSelfRelative Created entities with relative self-motion