Create Self Relative

Playable
Both Server and Client
Both Mobile and PC

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

Declaration

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

Parameters

Input

Name Type Description
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

Out

Name Type Description
Created Entity PlayableSelfRelative Created entities with relative self-motion