Skip to main content

Introduction to C# in Unity3D #1: 💻What? Why? How

By January 24, 2021February 11th, 2021No Comments
💻It is an object-oriented programming language created by Microsoft
💻 Object-oriented programming (OOP) is about creating objects that contain both data and methods.
💻It is easy to learn and simple to use
💻 Good community Support
💻Good for making games, VR apps, AR apps,

Your C# code will interface with the game engine via the Unity3D Scripting API. The Unity3D scripting API exposes functions that can be used by your code to do things like spawn monsters at the start of the game. Or to display a message whenever a user presses the spacebar

if (Input.GetKeyDown(KeyCode.Space))
                __print("Hi there!");
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CubeController : MonoBehaviour
    // Start is called before the first frame update
    void Start()

    // Update is called once per frame
    void Update()


Leave a Reply