Inside some NPCs, I have attached a Dialogue Actor Script -> Bark UI settings -> Bark UI -> Bubble Template Standard Bark UI prefab. Is there a way I could modify for each of them the Canvas-> Order in Layer number?
Thanks!

Code: Select all
IEnumerator Start() {
yield return null;
var barkCanvas = GetComponent<DialogueActor>().barkUISettings.barkUI.GetComponentInChildren<Canvas>();
barkCanvas.sortingOrder = ###; // Some value.
}