- Home /
Stop a MonoBehavior from being addable as a script?
I am writing an asset, however I would like to stop the user from manually adding the scripts - rather I would like an interim script to do this for them.
Example:
I have two scripts - we'll call these static and dynamic.
I have a third script which we'll call helper - this will add the static or dynamic script based on what the user has entered into the helper script.
However I would like to deny the user from being able to add static and dynamic to a game object at all, rather just the helper script should be available.
Your answer
Follow this Question
Related Questions
How do I associate my custom object for the serializedProperty objectReferenceValue 1 Answer
Confused about custom GameObjects,Custom GameObject confusion 0 Answers
Get list of all "Action" classes 1 Answer
Help with Missing Monobehaviours and Asset Serialization? 0 Answers
Bind to OnWillSaveAssets and force to save my scene 0 Answers