Adventure Creator  1.79.1
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2022
AC.InteractiveBoundary Class Reference
Inheritance diagram for AC.InteractiveBoundary:

Protected Member Functions

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.

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