20 lines
579 B
Plaintext
20 lines
579 B
Plaintext
URL: https://wiki.studiominus.nl/internalReference/ParallaxBehaviour.html
|
|
Title: People Playground Modding - ParallaxBehaviour
|
|
==================================================
|
|
|
|
public class ParallaxBehaviour
|
|
Inherits MonoBehaviour
|
|
[RequireComponent(typeof(Camera))]
|
|
Moves and scales a transform to make it appear far away. This component requires a camera
|
|
Fields
|
|
public float Depth
|
|
The apparent depth of the object
|
|
|
|
public Vector2 Offset
|
|
The apparent offset of the object
|
|
|
|
public Vector2 Scale
|
|
The apparent size of the object
|
|
|
|
public Transform Container
|
|
The object to transform |