I have a problem trying to understand how to use the "except:GameObject" vcam parameter.
According to the docs, if I use "except:vcamName" as the first parameter, it should set the priority for all other cameras other than vcamName.CinemachinePriority()
Syntax: CinemachinePriority(vcam, [priority], [cut])
Parameters:
vcam: The name of a GameObject containing a CinemachineVirtualCamera. Alternatives for this parameter:
all: Set the priority of all vcams.
except:GameObject: Set the priority of all vcams except the one named GameObject.
priority: (Optional) New priority level. Default: 999.
cut: (Optional) Cuts immediately to the new vcam instead of easing to it.
I'm using it as shown:
Code: Select all
CinemachinePriority(except:vcamName, 0);
Code: Select all
Dialogue System: Sequencer: CinemachinePriority(except:vcamName,0): Can't find virtual camera 'except:vcamName.
UnityEngine.Debug:LogWarning (object)
Code: Select all
var vcam = (subject != null) ? subject.GetComponent<CinemachineVirtualCamera>() : null;
Removing "except:" changes the priority for the specified camera.