---
url: https://cri-middleware.github.io/SSPlayerForWeb/api/@spritestudio/ssplayer-pixi-ui/interfaces/SSPartFollowOptions.md
---
# Interface: SSPartFollowOptions

Defined in: packages/ssplayer-core/dist/index.d.ts:5297

How a facade's part attachment follows its part. Engine-agnostic so the pixi
and rmmz facades share one option shape (the target object they drive is
engine-specific and lives on each facade's own attachment type).

## Properties

### addAsChild?

> `optional` **addAsChild?**: `boolean`

Defined in: packages/ssplayer-core/dist/index.d.ts:5321

Parent the target under the player so it inherits the player's own
transform and lands exactly on the part (default true). When false the
target is driven where it already lives — an exact match then only holds
while it shares the player's coordinate space.

***

### onHide?

> `optional` **onHide?**: `"follow"` | `"hide"`

Defined in: packages/ssplayer-core/dist/index.d.ts:5314

What to do on frames the part is hidden: `'follow'` keeps tracking it
(default), `'hide'` hides the target too. A part absent from the current
animation always hides the target regardless of this.

***

### position?

> `optional` **position?**: `boolean`

Defined in: packages/ssplayer-core/dist/index.d.ts:5299

Drive the target's position from the part. Default true.

***

### rotation?

> `optional` **rotation?**: `boolean`

Defined in: packages/ssplayer-core/dist/index.d.ts:5301

Drive the target's rotation from the part. Default true.

***

### scale?

> `optional` **scale?**: `boolean`

Defined in: packages/ssplayer-core/dist/index.d.ts:5308

Drive the target's scale from the part. **Default false**: a follower is
placed *at* the part, not *sized by* it, and a health bar or a name plate
stretching with a breathing animation is rarely what was wanted. Turn it
on for something that is part of the artwork — a weapon in a hand.
