- Home /
Is there a way to hide a dll MonoBehaviour, or disallow adding it?
Let's say we have a dll with a couple of MonoBehaviours which are "internal", i.e they are not supposed to be added to game objects by level designers, they are only meant to be added by other code.
Is there a way to hide such MonoBehaviours so they don't appear in the project view under the respective dll and in the add script menu? (Or another way of achieving this)
I don't think there is a way to hide scripts from the Project View. But maybe you can use HideFlags
Answer by guavaman · Aug 07, 2013 at 08:02 PM
I know of no way to hide it from the project view, but as for the components menu, its easy. This was answered in another thread by Numberkruncher so I thought I'd repost the solution here. Hide from the components menu
[AddComponentMenu("")]
public class MySecretBehaviour : MonoBehaviour {
// blah...
}
Your answer
Follow this Question
Related Questions
Can coroutines be used in external C# dlls? 1 Answer
Prefabs not finding MonoBehaviours moved into a plugin DLL 1 Answer
Is it possible to assign a script that derives from MonoBehaviour from an external library? 1 Answer
Monobehaviours & Editors with Inheritance across DLL boundaries don't load into Unity 2 Answers
Adding new code to built client 0 Answers