PrebuildSceneSetupAttribute.cs 576 B

1234567891011121314151617181920
  1. using System;
  2. namespace UnityEngine.TestTools
  3. {
  4. [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Method)]
  5. public class PrebuildSetupAttribute : Attribute
  6. {
  7. public PrebuildSetupAttribute(Type targetClass)
  8. {
  9. TargetClass = targetClass;
  10. }
  11. public PrebuildSetupAttribute(string targetClassName)
  12. {
  13. TargetClass = AttributeHelper.GetTargetClassFromName(targetClassName, typeof(IPrebuildSetup));
  14. }
  15. internal Type TargetClass { get; private set; }
  16. }
  17. }