Skip to main content

HostOnlyObject and HostOnlyComponent

HostOnlyObject

This is a helper component that developers can attach to a GameObject. This component will disable the object, and will only re-enable it if the local player is the host.

HostOnlyComponent

This works the same way HostOnlyObject does, but it can be used for specific components in the same GameObject.