- Home /
What are the unityeditorinternal and the unityengineinternal namespace and why are they missing from the docs ?
When I type "using" intelisense give me two namespaces those I never heard about and missing from the docs: UnityEditorInternal and UnityEngineInternal or maybe I didn' found them.
What are these namespaces used for and why are they missing from the docs?
Answer by gnumaru · Mar 01, 2018 at 11:33 AM
@IronPig_
Even though UnityEngineInternal and UnityEditorInternal are public namespaces with public types and public methods, since they are explicitly named "internal" and (probably) purposefully without a public documentation, it should mean that Unity Technologies does not want anyone to depend upon functionality present in these namespaces, as they may be types and methods that may change its public symbols and signatures easily and frequently, and can just cease to exist from one version of unity to another.
That said, there can be useful things inside there, which you should use at your own risk as they may change their type names, method signatures and internal behavior from one unity version to another.
One of such useful things is the UnityEditorInternal.ComponentUtility which contains the methods CopyComponent, PasteComponentAsNew and PasteComponentValues which let you easily copy one component from one gameobject to another.
I have made a 'quick and dirty' MenuItem to dump this info, it iterates over the types in these namespaces and spit out the public info. Use at will.
https://github.com/Gnumaru/UnityInternalsDumper
In the repo I put sample dumps which, again, can vary for each unity version.
Your answer
![](https://koobas.hobune.stream/wayback/20220612125010im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
"UnityEditor" namespace not found... 9 Answers
"Classic" namespace "UnityEditor" error 4 Answers
"using UnityEditor;" throws an error? 1 Answer
Unity started rejecting my scripts? 1 Answer
Using SerializedObject in a build 1 Answer