Description
Custom PickUp component. It describes the mounting point of the custom PickUp objects, whether other players can seize them, and how to configure and display the properties of different buttons (main buttons and sub-buttons).
Property
Property Name | Property Type | Default Value | Property Description |
---|---|---|---|
Interaction Type | CS.InteractionType | Range | Indicates 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 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. - true: Enables outline effect. Default value. - false: Disables outline effect. |
Interaction Mode | CS.Interaction3DType | Click | Indicates 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 Button | bool | true | Specifies whether to enable 2D interactive buttons. - true: Enable interactions by default. - false: Disable interactions. |
Button Postion | CS.InteractiveButtonType | Hand | Indicates the button type. - Hand: Hand button - Additive: Other interactive buttons |
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 | |
PickupType | CS.PickupType | Indicates the pickup time. - Any: - Custom: Custom PickUp position | |
LeftLocation | UnityEngint.Transform | Specifies the position for holding an object after pickup in the left hand. | |
RightLocation | UnityEngint.Transform | Specifies the position for holding an object after pickup in the right hand. | |
AllowDrop | boolean | true | Specifies whether dropping is allowed. - true: Allow, default value - false: Not allow |
AllowTheft | boolean | false | Specifies whether you allow other players to steal from you after pickup. - true: Allow - false: Not allow |
MainButtonType | CS.MainInteractButtonType | Main Button Type | |
IsShowMainButton | boolean | Specifies whether to show the main button. - true: Show - false: Don't show | |
MainButton | CS.ParaButton | Specifies the property of the main button after pickup, which is valid when the MainButtonType is set to CS.MainInteractButtonType.Button. | |
MainJoyStick | CS.ParaJoyStick | Specifies the property of the main joystick after pickup, which is valid when the MainButtonType is set to CS.MainInteractButtonType.Stick | |
WaveJoyStick | CS.ParaJoyStick | Specifies the property of the wave joystick after pickup. | |
IsShowFirstSubButton | boolean | false | Specifies whether to show the first sub-button. - true: Show - false: Don't show |
FirstSubButton | CS.ParaButton | Specifies the property of the first sub-button after pickup. | |
IsShowSecondSubButton | boolean | false | Specifies whether to show the second sub-button. - true: Show - false: Don't show |
SecondSubButton | CS.ParaButton | Specifies the property of the second sub-button after pickup. |
SDK File Path
Assets/ParaWorldSDK/ToolBox/LuaScripts/Pickup.lua