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

Public Member Functions

void Upgrade ()
 

Public Attributes

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

Protected Member Functions

void Awake ()
 
void OnEnable ()
 
void OnDisable ()
 
void SetVisibility (bool state)
 
IEnumerator SetVisibilityAfterDelay (bool state, float delayDuration)
 

Protected Attributes

bool isLockedOff = false
 
bool isVisible = false
 
Renderer _renderer
 
SpriteRenderer spriteRenderer
 
Renderer[] childRenderers
 
SpriteRenderer[] childSprites
 
VideoPlayer videoPlayer
 

Properties

bool IsLockedOff [get, set]
 

Detailed Description

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

Member Function Documentation

◆ Upgrade()

void AC.LimitVisibility.Upgrade ( )

Upgrades the component to make use of the limitToCameras List, rather than the singular limitToCamera variable.

Member Data Documentation

◆ affectChildren

bool AC.LimitVisibility.affectChildren = false

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

◆ 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

◆ negateEffect

bool AC.LimitVisibility.negateEffect = false

If True, then the GameObject will only be visible when the Cameras defined in limitToCameras are not active

Property Documentation

◆ IsLockedOff

bool AC.LimitVisibility.IsLockedOff
getset

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