using System;
#if UNITY_EDITOR
using UnityEditor;
namespace UnityEditor.XR.Management
{
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public sealed class XRSupportedBuildTargetAttribute : Attribute
{
///
/// String representation of UnityEditor.Build.BuildTargetGroup
///
public BuildTargetGroup buildTargetGroup { get; set; }
///
/// Array of BuildTargets, each of which is the representation of UnityEditor.Build.BuildTarget
/// aligned with .
///
/// Currently only advisory.
///
public BuildTarget[] buildTargets { get; set; }
private XRSupportedBuildTargetAttribute() { }
/// Constructor for attribute. We assume that all build targets for this group will be supported.
/// Build Target Group that will be supported.
public XRSupportedBuildTargetAttribute(BuildTargetGroup buildTargetGroup)
{
this.buildTargetGroup = buildTargetGroup;
}
/// Constructor for attribute
/// Build Target Group that will be supported.
/// The set of build targets of Build Target Group that will be supported.
public XRSupportedBuildTargetAttribute(BuildTargetGroup buildTargetGroup, BuildTarget[] buildTargets)
{
this.buildTargetGroup = buildTargetGroup;
this.buildTargets = buildTargets;
}
}
}
#endif