Teaching Newbies since 2014

  • Home
  • Javascript ❤
    • JavaScript
    • Node.js
  • WebDev Tuts
  • screencasts
  • Resources
  • VR & AR
  • Github
  • Twitter
  • YouTube
  • RSS
  • C++
You are here: Home / Unity3D / Introduction to C# in Unity3D #1: 💻What? Why? How

January 24, 2021 by: Kauress

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

💻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://i0.wp.com/s3-us-west-2.amazonaws.com/secure.notion-static.com/e751024b-8930-4971-a61f-7c79eea9884b/glue.png?ssl=1

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");

    }
}
Unity3D Scripting API #4 : Update() ☑️
Unity3D Scripting API # 5: FixedUpdate() ☑️

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Copyright © 2022 ·Kauress

Go to mobile version