rabidus-test/Assets/CurvedUI/Scripts/OptionalDependencyAttribute.cs

24 lines
702 B
C#
Raw Permalink Normal View History

2023-08-15 17:38:54 +03:00

using System;
using System.Diagnostics;
//Used in this project:
//[assembly: CurvedUI.OptionalDependency("TMPro.TextMeshProUGUI", "CURVEDUI_TMP")]
//[assembly: CurvedUI.OptionalDependency("Valve.VR.InteractionSystem.Player", "CURVEDUI_STEAMVR_INT")]
namespace CurvedUI
{
[Conditional("UNITY_CCU")]
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public class OptionalDependencyAttribute : Attribute
{
public string dependentClass;
public string define;
public OptionalDependencyAttribute(string dependentClass, string define)
{
this.dependentClass = dependentClass;
this.define = define;
}
}
}