VisibilityTrigger
A class in Root.Township, Alta.ScreenshotCamera.
Reports when a renderer on this object becomes visible or invisible to any camera.
- Listed in Customization and screenshots
- Inherits or implements
MonoBehaviour
Constructors
| Member | What it is |
|---|---|
VisibilityTrigger() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Properties
| Member | What it is |
|---|---|
bool IsVisible { get; private set; } | Whether the renderer is currently visible to some camera. |
Events
| Member | What it is |
|---|---|
event Action<bool> VisibilityUpdated | Raised with the new visibility. It is invoked without a null check, so it throws if nothing is subscribed. |
Methods
2 private and internal methods
Used in
Members of other types that take, return or hold a VisibilityTrigger: