How do you make prefabs with purely UI stuff?

Every time i make a prefab from UI, when i open the prefab editor - some times the local scale is set to (0,0,0) for no reason, i can’t figure out how to stop it happening. It’s super janky.

What causes it and how do i prevent it from happening ?

You might try setting up prefab editing scene in “Project Settings/Editing Environmens/Ui Environment”. See last section in Unity - Manual: Editing a Prefab in Prefab Mode . Although I have never seen issues with local scale getting setting to 0 so I am not sure if it will help you. Are you sure you don’t have any scripts running in edit mode which control scale and could potentially be confused by prefab editing mode?

1 Like