December 2013
Beginner
320 pages
8h 22m
English
There is an alternative method of creating and utilizing a second camera, but ours will make use of a single script that additionally allows us to control the speed of each layer:
ParallaxScroll script.public Material[] materials = new Material[0]; public float[] speeds = new float[0]; private Vector3 lastPosition = Vector3.zero;
Start function, we record the camera's beginning position. We use Start instead of Awake here, in ...Read now
Unlock full access