- Home /
Replace gameObject.Transform with MyTransform class.
I want to define my own transformation rules in my own class derived from the UnityEngine.Transform. Is there a way to replace GameObject's native transform with my own (just like RectTransform does)? I guess I can override Transform editor, add MyTransform as MonoBehaviour and hide UnityEngine.Transform, but is there a simpler way to do it?
Answer by zero_null · Dec 15, 2017 at 08:10 AM
It may not seem like an answer but I don't think it's possible. The transform component is essential even for empty gameObjects so there won't be an even simpler method that you are looking for.
Your answer
![](https://koobas.hobune.stream/wayback/20220612144628im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How Change one object to another in animation? ( change Sphere to cube) 0 Answers
ReplacePrefab() resets transforms for instanced prefabs? 1 Answer
SOLVED - String replace % with " in C# 1 Answer
selecting and organising objects in editor 0 Answers
How to sync child objects of a transform in multiplayer 3 Answers