- Home /
target of triggers on eventtrigger is null when reload scriptableObject how to fix it?
Unity 2020.2.7
I have some problem with ScriptableObject
EventTrigger Component have a event
the event's target is a asset of ScriptableObject
at runtime this very working well.
and I unload the asset using Resources.UnloadAsset()
and I reload the asset using Resources.Load()
then the EventTrigger is no problome on inspector to look at
but the event not working.
I have breakpoint for trigger of EventTrigger.
And I figured out there was a problem.
target of trigger is null.
how to fix this problem?
I am in a situation where I need to reload the asset of ScriptableObject.
Any hlep??
Your answer
Follow this Question
Related Questions
Dynamic skill system with scriptable objects 2 Answers
A scriptable object for each variable, or one containing all those specific variables together? 0 Answers
List keeps emptying itself 0 Answers
Best way to make a ton of weapons,Best way to build a ton of weapons 1 Answer
Should I worry about having many 1000s of small files in my project? 0 Answers