- Home /
Question by
elliselkins · Oct 23, 2017 at 07:55 PM ·
componentmonobehaviourmetadata
Change MonoBehaviour component name in prefab text file?
I sometimes get into a prefab's file and look at it's text. I've noticed that components have their base Unity class name. So I see RigidBody, MeshFilter, MeshRenderer, etc. For any custom component I see MonoBehaviour. Is there an way to change this to my custom component's class name? This would make it easier to read the prefab text file. I can image it being a metadata tag in the custom class something like this:
[ComponentName("AlignmentCamera")]
public class AlignmentCamera : MonoBehaviour
{
...
Comment