- Home /
Question by
Feathered · Dec 18, 2020 at 09:39 AM ·
editoraddcomponent
Why "AddComponent" behaves differently in "Play" and "Edit" modes?
I have a script that can run both in Edit and Play modes. This script adds Text component to the object. But when used in Edit mode, the created component comes with default "Arial" font. In Play mode the same component is created with font = null. Why the inconsistency?
Comment
Your answer
