1118OPSSNew/Assets/Samples/Mixed Reality Toolkit Examples/2.5.0/Experimental - PulseShader/Scripts/HideOnDevice.cs

21 lines
457 B
C#

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using UnityEngine;
namespace Microsoft.MixedReality.Toolkit.Experimental.SurfacePulse
{
/// <summary>
/// Hide the game object on device.
/// </summary>
public class HideOnDevice : MonoBehaviour
{
void Start()
{
if (!Application.isEditor)
{
gameObject.SetActive(false);
}
}
}
}