Open demirmusa opened 2 years ago
Hi @dbrizov The pr is completed now(I just did small renaming). Is there anything else I should do?
Hi @dbrizov Any update? I use NaughtyAttributes in all my projects. Has the project been left to be actively maintained?
Hi, @demirmusa I am still the only one maintaining the project. I am usually waiting for a batch of pull requests so that I can merge them all at the same time. I am planning on making an update in the next couple of weeks. Just need to find some spare time.
Hi @dbrizov, Thank you very much for your detailed explanation. If there is anything about Pr, you can ask me directly. (Or if you dont want to implement it)
Apart from that, I love this project and would like to contribute/help as much as I can.
Would really love to see this merged, any progress? :)
For anyone who is still waiting for this PR, I have a project that can co-work with NaughtyAttributes with this feature so you don't need to switch:
using SaintsField;
public interface IMyInterface {}
public class MyInter1: MonoBehaviour, IMyInterface {}
public class MySubInter: MyInter1 {}
public class MyInter2: MonoBehaviour, IMyInterface {}
[RequireType(typeof(IMyInterface))] public SpriteRenderer interSr;
[RequireType(typeof(IMyInterface), typeof(SpriteRenderer))] public GameObject interfaceGo;
[RequireType(true, typeof(IMyInterface))] public SpriteRenderer srNoPickerFreeSign;
[RequireType(true, typeof(IMyInterface))] public GameObject goNoPickerFreeSign;
That pr implements
RequiredType
validation attribute. You can useRequiredType
attribute on gameobjects or any kind of components to validate that gameobject property that use that attribute has required component(s).Example Usage:
Checking an Interface
Checking a Component
Checking Multiple Types
Result
Resolves https://github.com/dbrizov/NaughtyAttributes/issues/351