Unity logo
取消
购物车
应用
Sell Assets

11000+款5星资源

8.5万+用户参与评分

10万+社区成员鼎力支持

每款资源都经过 Unity 审核

首页
工具
实用工具
此内容由第三方提供商托管,该第三方提供商在未接受Targeting Cookies的情况下不允许观看视频。如果您想观看来自这些提供商的视频,请将“Targeting Cookie”的Cookie偏好设置为“是”。
1/17
Turn any Prefab into a "black box": hide its components and child GameObjects, and reveal only what you want. No more unwanted overrides or Applying by mistake, saving time for the whole team.
可编程渲染管线(SRP)兼容性
Unity可编程渲染管线(SRP)是让您能够通过C#脚本控制渲染的一个功能。SRP是支撑通用渲染管线(URP)和高清渲染管线(HDRP)的底层技术。
Unity版本内置渲染管线通用渲染管线(URP)高清渲染管线(HDRP)
6000.0.45f1
兼容
兼容
兼容
2022.3.37f1
兼容
兼容
兼容
2021.3.27f1
兼容
兼容
兼容
描述

Prefab encapsulation has been one of the top feature requests from Unity users ever since nested Prefabs were introduced in 2018. BlackBox enables just that, with a single component!


With all the options that Unity's Prefab system offers, even for an expert user it can be easy to make modifications by mistake on a Prefab instance and leave them as overrides in the scene, something that can become a source of bugs that are pretty hard to track down. With BlackBox it's possible to prevent overrides to any Prefab... but not just that!


BlackBox offers three main features:


📦 Locking a Prefab

📦 Revealing properties, methods, references, or entire components

📦 Preventing Apply


And the beauty is that these three can be used together or individually, to create just the Prefab workflow you need!


In detail:


📦 LOCKING

Once you add the BlackBox component, any Prefab with a number of children GameObjects and components appears as a single object in the hierarchy in the Scene. The user can only change the Transform properties, and enable/disable it. To modify other properties, simply open it in Prefab mode and make changes as usual.


Temp Unlocking (NEW!)

You can temporarily unlock a Prefab on-the-fly, by just clicking an icon or hitting the U key. This allows you to add overrides to an otherwise locked Prefab.


📦 REVEAL PROPERTIES, METHODS, OBJECT REFS, COMPONENTS

If you have an important aspects of your Prefab that still need to be visible, you can add them to a list of revealed items. These special properties are going to show up on the root even when the Prefab is locked! (see images)

  • All property types are supported out of the box, including the ones decorated with Odin Inspector! ✨
  • You can reveal entire component Inspectors in one click! ✨✨
  • You can reveal methods, and they will show up as buttons, so you can invoke them directly from the BlackBox (in Play or Edit mode). ✨✨✨
  • If you need to reference a child Component in another script (a typical Unity pattern!), you can reveal an object reference to it! ✨✨✨✨

In essence, you can expose any internal aspect of your locked Prefabs, and use that to guide the team on what they can actually modify.


📦 PREVENTING APPLY

You can take revealed properties one step further and prevent users from applying Scene overrides to them. They can still be Reverted, but with no Apply the user gets the extra safety of being unable to mess with the original Prefab asset.


➡️ AND MORE!


Auto-add

You can configure BlackBox to be auto-added to all your Prefabs on creation, to achieve the ultimate safe workflow... or just add it manually to the ones you want!


No impact on the game

The BlackBox component is an editor-only component, so it won't end up in your builds, meaning it has no impact on the game.

You can easily add, remove or readd the BlackBox component, with no consequence or changes to how your Prefabs behave at runtime.


Compatible with all Prefab types and workflows

The BlackBox workflow is compatible with Prefab Variants and nesting, so you can have a locked Prefab within an unlocked Prefab, or viceversa.


Compatible with Odin Inspector

By simply using an [RevealWithOdin] attribute, properties decorated with Odin attributes will show in the BlackBox component just like they do in their original components.

Please note that the vast majority of Odin attributes are supported, but not all. Attributes that modify the layout (like [TabsGroup] or [FoldoutGroup]) are unlikely to work.


🎩 Integration with Hats - Workspaces and Teams (NEW!)

BlackBox integrates with Hats - Workspaces and Teams. Upon configuring a Prefab, you can now choose which Teams are allowed to edit it. (Read Hats documentation for more on Teams)


🈶️ CJK languages support

BlackBox supports CJK languages for revealed property names.


该工具支持中文。

このツールは日本語をサポートしています。

이 도구는 한국어를 지원합니다.


📘 Documentation

You can preview the documentation and learn all about the functionality before you get the asset.


Save some money

BlackBox is part of our All Editor Tools bundle. By getting that, you effectively get this package at 25% off. If instead you already purchased this package, you will get a discount on the bundle.


💬 Feedback

If there is a workflow BlackBox doesn't cover, I'd like to hear from you how I can make BlackBox better. You can write to buoybase@gmail.com and we can assess if it can be added to the asset. Or hop on my Discord to have a chat.

技术细节

Version compatibility

BlackBox is only compatible with Unity 2021 LTS and later (including Unity 6).

BlackBox - Improved Prefab Workflow

(11)
148 users have favourite this asset
(148)
$64.99
席位
1
更新的价格和增值税在结算时计算
退款政策
该资源受Unity资源商店退款政策约束。有关详细信息,请参见《最终用户许可协议》(EULA)中的第2.9.3节。
安全结账方式:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
许可证类型
文件大小
118.5 KB
最新版本
1.8.3
最新发布日期
2025年4月16日
原始 Unity 版本
2021.3.27
高品质资源
11000+款5星资源
深受用户信赖
8.5万+用户参与评分
强大的社区支持
10万+社区成员鼎力支持
Unity logo
语言
反馈
合作伙伴计划
合作伙伴
USD
EUR
Copyright © 2025 Unity Technologies
所有价格不包含税
USD
EUR