Easy Prefab Override


The purpose of ‘EasyPreFabOverride’ is to prevent fields of a Prefab-Instance to change, even if the PreFab fiel ...


by Tiltgames


Price History +

The purpose of 'EasyPreFabOverride' is to prevent fields of a Prefab-Instance to change, even if the PreFab field changes. This is very useful to specialize Prefab-Instances in your levels. Even if you hit 'Apply' on one of the Prefab-Instances by accident the fields of your other Instances won't change.

It's very simple to use. Simply set a '[PreFabOverride]'-Attribute to your fields of your C#-Monoscript and these field will be always overridden (marked as bold) in the inspector.

Info: This plugin uses a custom editor script for Monobehaviours. If you have your own custom inspectors you can quite easily implement the funcionality by adding 'PreFabOverride.MakeFieldsOverride (target);' to the 'OnInspectorGUI ()' of your inspector script.

Features
- Works with private and public fields
- Works with Float, Integer, String, Boolean, Vector2, Vector3, Vector4, Color fields and Enums
- Edit multiple Objects supported
- Full source code included
- Example scene included