Page 1 of 1

Ending Bark from script

Posted: Tue Feb 15, 2022 4:48 am
by Mydel
Hey im wondering how can i force to end bark from script.

In my case im barking while player hover into object but when picking it i would like to end bark with nametag.

Do anyone know how to do it?

Re: Ending Bark from script

Posted: Tue Feb 15, 2022 8:45 am
by Tony Li
Hi,

If you want to hide a specific bark UI, you can call its Hide() method.

If you have a group of barkers and you don't know which one is barking, you can either handle it yourself and call Hide(), or you can use bark groups.
How to hide all in a bark group
1. Add a Bark Group Member component to each barker, and assign the same group ID to them.
2. Create an empty GameObject and add a Bark Group Member component with the same group ID (e.g., named NoBark).
3. Call BarkGroupManager.instance.Mutex(groupID, NoBark);[/code]