ComponentRestrictionAttribute.cs 390 B

1234567891011121314151617
  1. /*
  2. * Copyright (c) 2014 - 2022 t_saki@serenegiant.com
  3. */
  4. using System;
  5. using UnityEngine;
  6. [AttributeUsage(AttributeTargets.Field, Inherited = true, AllowMultiple = false)]
  7. public class ComponentRestrictionAttribute : PropertyAttribute
  8. {
  9. public readonly Type type;
  10. public ComponentRestrictionAttribute(Type type)
  11. {
  12. this.type = type;
  13. }
  14. } // class ComponentRestrictionAttribute