Do not use [RequireComponent] in custom scripts #22
Unanswered
Laumania
asked this question in
Troubleshooting
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Due to the way UMod works, [RequireComponent] cannot be used in your custom scripts in mods.
I got an explanation by UMod at somepoint and as I recall it's related to how UMod load in stuff dynamically and then after setup all references. The [RequireComponent] attribute and Unity's handling of that interfere with that logic.
Beta Was this translation helpful? Give feedback.
All reactions