OdinPeer.RemoveMediaComponent
public bool RemoveMediaComponent(GameObject containerObject, ushort mediaId, bool componentOnly = false)
Removes all child components with the same media id
Parameters
Name | Type | Description |
---|---|---|
containerObject | GameObject | child components |
mediaId | UInt16 | decoder id |
componentOnly | Boolean | on false will destroy gameobject |
Returns
Type | Description |
---|---|
Boolean | true on removed decoder or false |