Skip to main content

Posts

Featured

First code line in first component

Let's code! See below how to add first component. Let say that components are bricks of your game. You can build whole behaviour of object in the scene from components. To learn more about Unity components you can refer to official Unity Manual . Here is code added to the component: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 using System.Collections; using System.Collections.Generic; using UnityEngine; public class ChangeColorComponent : MonoBehaviour { // Use this for initialization void Start () { GetComponent<SpriteRenderer> ().color = Color.red; } // Update is called once per frame void Update () { } } You don't understand what's going on or you've never programmed? Dont't worry! Today's programming and programming programming are quite different from those 10 years ago or shown in movies. It is very easy now! And basically you learn by copying the code, modifying it, and observing how

Latest Posts

Image

First simple steps

Introduction