ParaSeat

Description

The seat component. Defines the sitting position and the leaving position on the set, the interaction distance, and whether to allow the player to switch seats, as well as the animation effects of sitting.

Property

Property Name

Property Type

Default Value

Property Description

Interaction Type

CS.InteractionType

Range

The type of object interaction range:

  • Range: Default style, enter numbers to modify the range
  • Area: You can drag it into a custom Collider to modify the interaction range

Interaction Range

number

1.5

The interactive range of the object, which is valid when the Interaction Type is CS.InteractionType.Range.

Interaction Area

UnityEngine.Collider

null

The interactive range of the object, which is valid when the Interaction Type is CS.InteractionType.Area

Prompt Text

string

""

Interactable hint text of the object

Outline

boolean

true

Specifies whether to enable interactive outlines

  • true: Enables stroke effect. Default value
  • false: Disables stroke effect

Player Enter Location

UnityEngine.Transform

null

Sets the position and direction of the player when sitting

Player Exit Location

UnityEngine.Transform

null

Sets the position and direction of the player when leaving the seat

Switch Seat From Seat

boolean

false

Specifies whether to allow the player to go directly from this chair to another chair

CustomSittingAnimation

UnityEngine.AnimationClip

null

An animation effect that overrides the original "sitting" animation effect

SDK Path

Assets/ParaWorldSDK/ToolBox/LuaScripts/Seat.lua