‎ ‎
On the Asset Store
BlackBox
BlackBox
  • Intro
  • Changelog
  • Troubleshooting
  • Main features
    • Locking Prefabs
      • Temp Unlock
      • Extra locking options
    • Reveal
      • Properties
        • UnityEvents as buttons
      • Entire components
      • Object references
      • Methods
      • Reveal lists
    • Disable Apply
  • Integrations
    • Odin Inspector
  • Other
    • Selection type
    • Project Settings
Powered by GitBook
On this page
  1. Main features

Disable Apply

Last updated 5 months ago

When revealing properties, you might be opening a new "vulnerability" in the workflow: by default in Unity any property that is overridden can be Applied back to the original asset, potentially creating problems for everyone else using that Prefab.

For this, BlackBox offers the possibility to disable Apply, preventing the Prefab user from Applying overrides to the asset.

Tip: You don't need to for Disable Apply to work, though often the two workflows go hand in hand.

How to disable Apply

Disabling Apply is simply done by opening a Prefab with the BlackBox script in Prefab Mode, and checking the box Disable Apply:

When you go back to the scene, you will notice that right-clicking on an overridden revealed property brings up the dropdown menu as usual, but Apply is not available.

The user can still choose at any time to Revert the property to the original asset's value.

Note that when disabling Apply, the whole Overrides dropdown is also disabled. This is in order to prevent operations like Apply all or Applying entire components. To Revert All, you have to Revert properties by right-clicking on them one by one, or turn Disable Apply off temporarily, Revert, and then turn it back on.

lock a Prefab
Right-clicking on an overridden property, it is possible to Revert but not to Apply