April 2017
Beginner to intermediate
376 pages
8h 4m
English
Let's look at the class we created in this chapter and break it down into easily digestible parts.
Firstly, here is what a basic Unity C# class looks like, broken down to its bare essentials:
using UnityEngine;
namespace HoloLensBeginnersGuide
{
public class LaunchBall : MonoBehaviour
{ //member variables and properties belong here.
void Start()
{
}
void Update()
{
}
}
}
Now, we will want to compare that to LauchBall.cs. A Unity C# class consists of the following:
using UnityEngine;
using System.Collections;
Read now
Unlock full access