Properties

Revealed properties are like shortcuts that show up in the BlackBox Inspector that link to properties on child objects. Even though it might look like it belongs to the BlackBox component, modifying one of these properties means modifying the original property.

As an example, let's imagine a Prefab that has a MeshRenderer component on one of its children, and we decide to reveal the Materials property of this component. Once we swap Material by dragging/dropping a new one, the familiar override blue line shows that we have created an override on the Materials property.

The Material property has an override

Opening the Overrides dropdown clearly shows that the override is sitting on the correct object (the MeshRenderer component, in the image below), and not on the BlackBox component.

This means that if we were to Apply these changes, they would be applied to the correct sub-object.

The override is displayed on the object it belongs to, and not on the BlackBox component

Revealing properties

There are two ways to reveal a property:

On the BlackBox component

To get started, press the Show Available Properties and Methods button in the BlackBox component:

Under the button, a list of the GameObjects contained in the Prefab will show as foldouts. By opening them, you will see the components belonging to those GameObjects. Opening them again displays the properties, which will show a preview of the current value.

Properties are preceded by a small [P] letter, like the Mesh property on the MeshFilter here:

Inspecting the properties and methods that are available to reveal from the Platform_4x4_Empty child object

Press the [+] button on each property you want to reveal. The property will be added to a list at the top, and once added, you will be able to provide a name for it. This name will show up instead of the actual property name.

A position property has been added to the reveal list, and renamed to appear as Door position

Revealed properties can be removed again by clicking on the [-] button.

Once we inspect the Prefab in the scene, any revealed property will show up in the Inspector of the BlackBox component using the custom name we have specified during their configuration, and will be editable now:

The Door position property as it appears on the locked Prefab

Via the context menu

In addition to the above, there is a quick and handy way to reveal a property. Just navigate to the Component that contains that property, right-click on it. Under the menu BlackBox, you can choose which list to reveal the property in:

Done!

Not all properties can be revealed this way. If you right-click on one and you don't see the option, you have to reveal it using the method described in the previous section.

All properties individually via the context menu

Just like individual properties, it's possible to reveal all properties of a component at once by right-clicking on the component's header, and choosing BlackBox > All Properties > Reveal in..., choosing then which Reveal list you want to add the properties to.

Right-click on a component header to reveal all properties

First List, Second List... what are they?

Unfortunately, a Unity limitation means we can't display the custom names that you might have assigned to Reveal lists, and that's why they are displayed as First List, Second List, etc. up to 5 lists.

Last updated