Create Skeleton Part Look-at Controller

頭像
客戶端
限PC端

After creating a skeleton part look-at controller entity, you can use this entity to control the specified skeleton part and make it always face a specific target.

聲明

func CreateSkeletonPartLookAtController(out var createdEntity entity<SkeletonPartLookAtController>, controlledTarget entity<SkeletonPart>, lookAtTarget entity<Transform>)
go

參數

輸入

名稱 類型 描述
Controlled Target SkeletonPart The skeleton part that is being controlled
Look-at Target Transform The target that is being looked at

輸出

名稱 類型 描述
創建的實體 SkeletonPartLookAtController The skeleton part look-at controller entity. If the entity is destroyed, the look-at functionality will cease.