FabricManager
Overview
Fabric manager component must always be at the top of the hierarchy. Its main responsibility is to manage the component hierarchy.
A scene MUST have only ONE Fabric manager present.
Music Time Settings
Fabric allows to create global music timing settings that a number of components can sync with.
Audio Source Pool
The manager also provides a pool of audio sources that are used by the audio components instead of having to create one for each instance. For example if there is an audio component that has a very big number Fabric’s default behaviour is to create an audio source for each instance. However, using the audio pool the number of audio sources is pre-allocated.
NOTE: At the moment if the maximum number of audio sources are used the pool will fail to allocate a new one.
Usage value shows the number of audio sources that are in use.
Manager Info
The info section shows the number of game objects uses by the fabric hierarchy as well as the memory used by the manager (NOTE: it does NOT include the audio memory used, for that you need to look in the Unity profiler) and CPU usage of the node (inclusive).
Volume Threshold and Virtual Events
Volume Threshold
Fabric introduces a new volume threshold property which is used to determine if a component will be active. The volume threshold is used in the following situations:
- PlaySound event action: When a play event action is posted and the current volume of the component is less than the threshold then the component is not played
- Virtualization: If a component is playing and its volume drops below the threshold (through RTP or game input) then the component will turn virtual until its volume threshold is higher again.
Virtual Events
In order to reduce memory usage and performance it is possible to set the maximum number of virtual events that will be used by all components.
Inspector Elements
Add AudioMixer & DebugLog
The Add/Remove AudioMixer Manager button will add or remove the audio mixer component that is necessary for Fabric to communicate with Unity's audio mixer.
The Add/Remove DebugLog button will add/remove the DebugLog component
Watch the following video explaining more about the Fabric manager
https://www.youtube.com/watch?v=JBC363kYuaM&index=1&list=PLjo4vf11pt-MWtpdnyJdqJ41khf4YhS8y