← All dev blog posts

Unity

22 posts

  • 10 December 2020

    Sideloading onto your Hololens 2 through the Device Portal

    Set up your HoloLens to use the Windows Device Portal Before accessing the Windows Device Portal, you need to set it up on HoloLens: 1. Put on your HoloLens device and turn on…

  • 10 December 2020

    From Unity to Hololens

    NowSo I needed to create a Hololens 2 App and deploy it to an actual Hololens 2 that I had with me for development, AND I needed to save a copy of the compiled app that could…

  • 23 October 2020

    Toggle GameObject Visibility - Unity

  • 21 October 2020

    Dictation Recognizer - Unity

  • 21 October 2020

    Searching String for a phrase - Unity

    This one is super simple and is just

  • 23 June 2020

    Changing GameObject Material by Script - Unity

    Basically you just need to access the material property of the Renderer component.

  • 15 June 2020

    Call Sequence of Class Methods - Unity

    Right, so classes have a number of methods in them and it can get a bit confusing as to when each of them are called, especially when you require a very specific sequence of…

  • 12 June 2020

    Scriptable Objects - Unity

    Scriptable Objects have 2 major uses 1. Saving and storing data during an editor session 2. Saving data as an asset in our project for use at runtime Things to Note 1. In the…

  • 10 June 2020

    Static Variables and Methods - Unity

    So what does this word "static" do to variables and methods? Well a couple of things. 1. static variables and methods that are public are accessible from anywhere without…

  • 10 June 2020

    The Input Manager - Unity

    Unity have actually documented this really well here You might want to use the CrossPlatformInputManager which I have made a blog post about here

  • 10 June 2020

    Things to Research

    input.getaxisraw [serializeField] ///<summary Scriptable Objects Editor extensions [System.serializable] static magnitude ScreenBounds.RANDOM ON SCREEN LOC; struct quaternion

  • 5 June 2020

    Extension Classes - Unity

    So these are classes that you write, that extend one of the Unity classes. There's a good example on one of the Learn Unity tutorial site here. But basically you will create…

  • 5 June 2020

    Monobehaviour - Unity

    So I was watching a tutorial and the guys keeps banging on about classes being monobehaviour or not and I started wondering why he was making note of one that wasn't…

  • 4 June 2020

    Camera - Unity

    Camera.orthographicSize Did you know that the camera is half size when in orthographic mode? Well I didn't, but now I do. The orthographicSize property defines the viewing…

  • 3 June 2020

    Destroy - Unity

    The Unity docs have a good description of the Destroy method here. But in case you just want some quick code here it is. To destroy a gameobject from within itself, just call…

  • 3 June 2020

    Invoke - unity

    It calls the method methodName in time seconds This is an alternative to using coroutines.

  • 3 June 2020

    Mouse Position - Unity

    Code to get the Mouse Position in a 2D app Then to make something face towards it.

  • 3 June 2020

    Debugging - Unity

    There is a really neat way that you can turn on and off all your assistant testing code in a file. At the top of your file put the following code and then put all you debugging…

  • 3 June 2020

    Transforms - Unity

    Transform.LookAt Rotates the transform so the forward vector points at /target/'s current position. Then it rotates the transform to point its up direction vector in the…

  • 3 June 2020

    What is the Rigidbody component? - Unity

    Basically you add this to any gameobject that you want to act under the control of physics.It is added as a component in the inspector window in Unity. In your class file for…

  • 3 June 2020

    Update v FixedUpdate - Unity

    Thank you Unity Answers for giving me the low down on this one. Read the full thread HERE eric5h5 gives us a quick answer Update runs once per frame. FixedUpdate can run once,…

  • 3 June 2020

    Cross Platform Input Manager - Unity

    To use the cross platform input manager you need to make sure you have the Standard Assets Package included in your Unity project. To import it, use these instructions…