VisibilityDetector
A class in Root.Township, the global namespace.
Raises events when the renderer on the same object becomes visible to or hidden from any camera. Client side; the build bake fails if there is no renderer.
- Listed in Global namespace: T to X
- Inherits or implements
MonoBehaviour,IBuildRendererPostBake,IBuildBakeable
Constructors
| Member | What it is |
|---|---|
VisibilityDetector() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
2 private and internal fields
Properties
| Member | What it is |
|---|---|
bool IsVisible { get; private set; } | Whether the renderer is currently seen by a camera. |
Events
| Member | What it is |
|---|---|
event Action BecameInvisible | Raised when the renderer is no longer seen by any camera. |
event Action BecameVisible | Raised when the renderer is first seen by a camera. |
Methods
3 private and internal methods
Used in
Members of other types that take, return or hold a VisibilityDetector: