# Getting channel group id from name

**URL:** <https://qa.fmod.com/t/getting-channel-group-id-from-name/16407>\
**Category:** Unity\
**Created:** [November 6, 2020, 4:27pm UTC](https://qa.fmod.com/t/getting-channel-group-id-from-name/16407 "2020-11-06T16:27:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![florian13](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/florian13/32/597_2.png) [@florian13](https://qa.fmod.com/u/florian13)\
**Post date:** [November 6, 2020, 4:27pm UTC](https://qa.fmod.com/t/getting-channel-group-id-from-name/16407/1 "2020-11-06T16:27:18Z")

</div>

Hi there,

I have a group called “Nature” in the Mixer window and I’m trying to get the corresponding ChannelGroup object in C#. I found how to get the Master group using _RuntimeManager.CoreSystem.getMasterChannelGroup_ but couldn’t figure out how to get a specific group by its name.

I guess I’m also having hard time understanding the difference between a Channel and a ChannelGroup.

Any help would be very welcome! Thanks.

---

<div class="post-metadata">

**Author:** ![mathew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mathew/32/431_2.png) [@mathew](https://qa.fmod.com/u/mathew)\
**Post date:** [November 9, 2020, 1:03am UTC](https://qa.fmod.com/t/getting-channel-group-id-from-name/16407/2 "2020-11-09T01:03:19Z")

</div>

In the mixer, you can right click on the group you are interested in then select “copy path”, this will give you a string that represents that group that can be looked up at runtime. In game code, call [System.getBus](https://fmod.com/resources/documentation-api?version=2.1&page=studio-api-system.html#studio_system_getbus)(“copied path goes here”), this gets you the runtime bus for the group you chose in the mixer.

Contained within each Bus is a Core API ChannelGroup, this is a submix and distinct from a Channel which is a playing asset. You can fetch the ChannelGroup from a Bus by calling [Bus.getChannelGroup](https://fmod.com/resources/documentation-api?version=2.1&page=studio-api-bus.html#studio_bus_getchannelgroup).

---

<div class="post-metadata">

**Author:** ![florian13](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/florian13/32/597_2.png) [@florian13](https://qa.fmod.com/u/florian13)\
**Post date:** [November 9, 2020, 2:09pm UTC](https://qa.fmod.com/t/getting-channel-group-id-from-name/16407/3 "2020-11-09T14:09:30Z")

</div>

Thanks for your reply @mathew !  
I ended doing this and it works like a charm:

_Bus bus = RuntimeManager.GetBus(“bus:/path/to/my/group”);_  
_bus.getChannelGroup(out var channelGroup);_
