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

Public Member Functions

void TurnOn ()
 
void TurnOff ()
 

Public Attributes

bool controlsObjectLayer = true
 

Protected Member Functions

void DrawGizmos ()
 

Detailed Description

Provides functions to easily turn Collider components on and off, either through script or with the "Object: Send message" Action. This script is attached to AC's Collider prefabs.

Member Function Documentation

◆ TurnOff()

void AC._Collision.TurnOff ( )

Disables 3D and 2D colliders attached to the GameObject, and places it on the Deactivated (Ignore Raycast) layer - allowing Hotspot raycasts to pass through it.

◆ TurnOn()

void AC._Collision.TurnOn ( )

Enables 3D and 2D colliders attached to the GameObject, and places it on the Hotspot (Default) layer - causing it to block Hotspot raycasts.

Member Data Documentation

◆ controlsObjectLayer

bool AC._Collision.controlsObjectLayer = true

If True, then this component will control the GameObject's layer when turned on and off