mixedreality/com.microsoft.mixedreality..../Runtime/Utilities/EditorDrawerVisibleToBuildT...

25 lines
572 B
C#

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#if UNITY_EDITOR
using System;
using UnityEditor;
using UnityEngine;
namespace Microsoft.MixedReality.OpenXR
{
[AttributeUsage(AttributeTargets.Field)]
internal class EditorDrawerVisibleToBuildTargetAttribute : PropertyAttribute
{
public BuildTargetGroup[] BuildTargetGroups { get; }
public EditorDrawerVisibleToBuildTargetAttribute(params BuildTargetGroup[] buildTargetGroups)
{
BuildTargetGroups = buildTargetGroups;
}
}
}
#endif