![]() |
Eye of the Nile Docs
Everything you need to know to get started!
|
This script controls the transparency of objects that are distant to the player. This script affects the sprite renderer of the object that it is attached to.
Documentation updated 4/13/2025
Protected Attributes | |
SpriteRenderer | spriteRenderer |
Reference to the SpriteRenderer to make transparent. | |
LayerMask | playerLayer |
Objects on this layer are detected as the player. | |
float | opaqueDistance = 8f |
The distance at which you want the object to be fully opaque. | |
float | transparentDistance = 10f |
The distance at which you want the object to be fully transparent. | |
Private Member Functions | |
void | Awake () |
void | Update () |
|
private |
|
private |
|
protected |
The distance at which you want the object to be fully opaque.
|
protected |
Objects on this layer are detected as the player.
|
protected |
Reference to the SpriteRenderer to make transparent.
|
protected |
The distance at which you want the object to be fully transparent.