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

Public Member Functions

void TurnOn ()
 
void TurnOff ()
 

Public Attributes

bool showInEditor = false
 

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

◆ showInEditor

bool AC._Collision.showInEditor = false

If True, then a Gizmo will be drawn in the Scene window at the Collider's position