Developer Documentation

OdinPeer.RemoveMediaComponent

public bool RemoveMediaComponent(GameObject containerObject, ushort mediaId, bool componentOnly = false)

Removes all child components with the same media id

Parameters

NameTypeDescription
containerObjectGameObjectchild components
mediaIdUInt16decoder id
componentOnlyBooleanon false will destroy gameobject

Returns

TypeDescription
Booleantrue on removed decoder or false