DarrenTsung/DTValidator

Validating UnityEvents wrapped in class inside component

Kordeyrow opened this issue · 4 comments

Hello,
I have a component that has a class inside. This class has a UnityEvent and I think this event is not being validated because it's 'wrapped' inside the class.
What should I do?
Thank you!
BoolVariableListener

Can you try the changes in the commit above? I think it should fix your problem: 5b15c10

Looks like it's fixed!
I as on my way to try and add a "depth validation" but looks like you got the job done.
image
I guess I didnt understand the code well ;p
Thank you! Good job!
PS: I was also adding a Toggle for checking Prefabs that are not on Resources folder.
PS2: I'm trying to use this Validator Project, because I am using ScriptableObjects Event System and I dont want to fail spotting changes in callbacks or registers that, in an C# event code would give me an reference error, but doesnt happen with inspector UnityEvents.

Another thing that I should note is that when the Validation happens inside the "wrapped classes" the Validation window doesnt show the Gameobject path and name.
image

I found a way to add the path.
image