PostBuildCleanupAttribute.cs 588 B

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