ParaInteractiveObject

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 NameProperty TypeDefault ValueProperty Description
Interaction TypeCS.InteractionTypeRangeIndicates the type of object interaction range.:
- Range: Default type. You can enter inputs to modify the range.
- Area: You can drag a custom Collider to modify the interaction range.
Interaction Rangefloat1.5Indicates the interactive range of an object, which is valid when the Interaction Type is set to CS.InteractionType.Range.
Interaction AreaUnityEngine.CollidernullIndicates the interactive range of an object, which is valid when the Interaction Type is set to CS.InteractionType.Area.
Prompt TextString""Indicates the interactivity hint text of an object.
OutlinebooltrueSpecifies whether to enable outlines of interactive objects.
- true: Enables outline effect. Default value.
- false: Disables outline effect.
Interaction ModeCS.Interaction3DTypeClickIndicates the interaction type: (interaction type of 3D objects and interaction buttons within the scene)
- Click: Click the object.
- Press: Press the object.
-ClickUp: Release the click from the object.
Interaction ButtonbooltrueSpecifies whether to enable 2D interactive buttons.
- true: Enable interactions by default.
- false: Disable interactions.
Button PostionCS.InteractiveButtonTypeHandIndicates the button type.
- Hand: Hand button
- Additive: Other interactive buttons
HandButtonCS.ParaButtonNoActionsValid when the Button Postion is set to CS.InteractiveButtonType.Hand
AdditiveButtonCS.ParaButtonNoActionsValid when the Button Postion is set to CS.InteractiveButtonType.Additive
InteractiveActionCCS.ParaScriptCallDefault Interaction Handling Function

SDK File Path

Assets/ParaWorldSDK/ToolBox/LuaScripts/InteractiveObject.lua