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

Public Member Functions

void Upgrade ()
 Upgrades the component to make use of the limitToCameras List, rather than the singular limitToCamera variable.
 
void _Update ()
 

Public Attributes

_Camera limitToCamera
 
List< _CameralimitToCameras = new List<_Camera>()
 
bool affectChildren = false
 
bool isLockedOff = false
 

Detailed Description

This component limits the visibility of a GameObject so that it can only be viewed through a specific _Camera.

Member Function Documentation

◆ _Update()

void AC.LimitVisibility._Update ( )

Updates the visibility based on the attached camera. This is public so that it can be called by StateHandler.

Member Data Documentation

◆ affectChildren

bool AC.LimitVisibility.affectChildren = false

If True, then child GameObjects will be affected in the same way

◆ isLockedOff

bool AC.LimitVisibility.isLockedOff = false

If True, then the object will not be visible even if the correct _Camera is active

◆ limitToCamera

_Camera AC.LimitVisibility.limitToCamera

The _Camera to limit the GameObject's visibility to (deprecated)

◆ limitToCameras

List<_Camera> AC.LimitVisibility.limitToCameras = new List<_Camera>()

The _Cameras to limit the GameObject's visibility to