Automatic components selection
You can also select which specific components should be present/removed from the project scenes and prefabs in the different multiplayer roles. When building or entering play mode, Unity will automatically strip the corresponding Components including its subclasses.
The list of components striped by the options is the following.
- Strip Rendering Components:
Cameracomponent.Lightcomponent.- All components inheriting from
Render.
- Strip UI Components:
- All
UIElementscomponents. - All components in
UnityEngine.UInamespace. - All components in
UnityEngine.EventSystemsnamespace. UnityEngine.UIElements.PanelEventHandlercomponent.UnityEngine.UIElements.PanelRaycastercomponent.
- All
- Strip Audio Components:
UnityEngine.AudioSourcecomponent.UnityEngine.AudioLowPassFiltercomponent.UnityEngine.AudioHighPassFiltercomponent.UnityEngine.AudioReverbFiltercomponent.UnityEngine.AudioListenercomponent.UnityEngine.AudioReverbZonecomponent.UnityEngine.AudioDistortionFiltercomponent.UnityEngine.AudioEchoFiltercomponent.UnityEngine.AudioChorusFiltercomponent.
Workflow
- In the Project Settings window, select the Multiplayer settings
- In the Content Selection section, add the list of components to be selected for the Server or Clients.
