Newer
Older
HoloAnatomy / Assets / HoloToolkit-Examples / SpatialMapping / Scripts / DebugText.cs
SURFACEBOOK2\jackwynne on 25 May 2018 529 bytes v1
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

using UnityEngine;

namespace HoloToolkit.Examples
{
    [RequireComponent(typeof(TextMesh))]
    public class DebugText : MonoBehaviour
    {
        private TextMesh mText;

        private void Awake()
        {
            mText = GetComponent<TextMesh>();
        }

        public void SetText(string text)
        {
            mText.text = text;
        }
    }
}