Skip to main content
Unity3D

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

By January 24, 2021February 11th, 2021No Comments
https://www.youtube.com/watch?v=RrEISPwTqNY&t=15s
💻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,
https://s3-us-west-2.amazonaws.com/secure.notion-static.com/e751024b-8930-4971-a61f-7c79eea9884b/glue.png

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

Unity3d
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()
    {
        Debug.Log("Hello");
    }

    // Update is called once per frame
    void Update()
    {
        Debug.Log("Updating");

    }
}

Leave a Reply