Inspectable
This component belongs to the following package:
- com.yahaha.sdk.horrorprops
This Inspectable component allows an item to become inspectable. To function correctly, ensure the item has a properly sized collider attached.
Properties
- Interactive: Determines if the component is interactive. The component must be selected as an active plug-in in the Interactable component to function.
- Hint: A brief hint text to show on the sreen, that indicates what the player could do. Default: "Inspect".
- Target Item: Specifies the item to be inspected. Typically, this is the object itself with an attached Item Behavior Component. Default: Self.
- Description: Detailed text about the item, displayed during inspection.
- Inspect In Bag: Allows the item to be inspected when accessed from the player's item slots (typically activated by pressing "I"). Default: Enabled.
Trigger
Condition:
- CheckInteraction
- Description:
- Interact with prop, should call IsInteractice first
- Returns:
- result: boolean whether or not the interaction is success
- Description:
Action:
- IsInteractive
- Returns:
- param: table interactionParam
- Returns:
- Enable
- Description:
- Make the item interactive
- Description:
- Disable
- Description:
- Make the item non-interactive
- Description:
- Inspect
- Description:
- Check the item
Related components
This component must be used with Interactable, which enables player interaction with game objects.