Adventure Creator 1.84.3
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2024
Loading...
Searching...
No Matches
AC.InteractiveBoundary Class Reference
Inheritance diagram for AC.InteractiveBoundary:

Public Attributes

TriggerDetectionMethod detectionMethod = TriggerDetectionMethod.RigidbodyCollision

Protected Member Functions

void Update ()
void OnTriggerEnter (Collider other)
void OnTriggerExit (Collider other)
void OnTriggerEnter2D (Collider2D other)
void OnTriggerExit2D (Collider2D other)

Protected Attributes

bool forcePresence
List< GameObject > playersPresent = new List<GameObject>()

Properties

bool PlayerIsPresent [get]
bool ForcePresence [set]

Detailed Description

Used to limit a Hotspot's interactivity to Players that are within a given volume. Attach this to a Trigger collider, and assign in a Hotspot's Inspector. When assigned, the Hotspot will only be interactable when the Player is within the collider's boundary.

Member Data Documentation

◆ detectionMethod

TriggerDetectionMethod AC.InteractiveBoundary.detectionMethod = TriggerDetectionMethod.RigidbodyCollision

The way in which objects are detected (RigidbodyCollision, TransformPosition)

Property Documentation

◆ ForcePresence

bool AC.InteractiveBoundary.ForcePresence
set

If True, the Player will always be considered as present within the Collider boundary, even when not physically so

◆ PlayerIsPresent

bool AC.InteractiveBoundary.PlayerIsPresent
get

True if the active Player is within the Collider boundary