Newer
Older
HoloLens_Scripts_and_Docs / SetParent.cs
jack.wynne on 6 Oct 2017 353 bytes Create SetParent.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SetParent : MonoBehaviour {

    private void Awake()
    {
        this.gameObject.transform.SetParent(Camera.main.transform);
    }

    // Use this for initialization
    void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
		
	}
}