DevBlog #002
…
…
…
THE FARM ONCE PROMISED is a farming defense game for HTC Vive. The core gameplay mechanics consist of the player planting seeds, growing and managing crops, and building up their farm. You can purchase different…
How do I rotate with code in Unity? How do I use Quaternions? This is how: Vector3 myRotation = new Vector3(0f, 90f, 0f); transform.rotation = Quaternion.Euler(myRotation); You can also multiply stuff. // rotate an…
Unity GameObjects can have materials. Some of them can have multiple materials, which are an array of materials. Sometimes you want change a material in an array of materials on the fly. This is how…