Description
Basic interaction component. It is the most fundamental component for defining the interactions between objects, including basic interaction rules and basic display rules.
Property
| Property Name | Property Type | Default Value | Property Description |
|---|---|---|---|
| Interaction Type | CS.InteractionType | Range | Indicates the type of object interaction range.:
|
| Interaction Range | float | 1.5 | Indicates the interactive range of an object, which is valid when the Interaction Type is set to CS.InteractionType.Range. |
| Interaction Area | UnityEngine.Collider | null | Indicates the interactive range of an object, which is valid when the Interaction Type is set to CS.InteractionType.Area. |
| Prompt Text | String | "" | Indicates the interactivity hint text of an object. |
| Outline | bool | true | Specifies whether to enable outlines of interactive objects.
|
| Interaction Mode | CS.Interaction3DType | Click | Indicates the interaction type: (interaction type of 3D objects and interaction buttons within the scene)
|
| Interaction Button | bool | true | Specifies whether to enable 2D interactive buttons.
|
| Button Postion | CS.InteractiveButtonType | Hand | Indicates the button type.
|
| HandButton | CS.ParaButtonNoActions | Valid when the Button Postion is set to CS.InteractiveButtonType.Hand | |
| AdditiveButton | CS.ParaButtonNoActions | Valid when the Button Postion is set to CS.InteractiveButtonType.Additive | |
| InteractiveActionC | CS.ParaScriptCall | Default Interaction Handling Function |
SDK File Path
Assets/ParaWorldSDK/ToolBox/LuaScripts/InteractiveObject.lua