CVR Spawnable Trigger
Spawnable Triggers are the spawnable equivalent of the CVR Advanced Avatar Settings Trigger. They share their configuration model with CVRTrigger (area, allowed pointers, enter/exit/stay tasks, sample direction) but target a CVR Spawnable’s synced value instead of an avatar setting. On Start, the component registers with the contact system via TriggerToContact.Create(this, Spawnable, OwnerId).
A Spawnable Trigger requires a CVR Spawnable component on the same GameObject or a parent.
Fields
Section titled “Fields”Inherited from CVRTrigger:
areaSize,areaOffset— trigger volume.settingName,settingIndex,settingValue— target spawnable sync value and default.useAdvancedTrigger,isLocalInteractable,isNetworkInteractable,allowParticleInteraction— interaction rules.allowedPointer(List<CVRPointer>),allowedTypes(string[]) — pointer filters.enterTasks,exitTasks(List<CVRTriggerTask>),stayTasks(List<CVRTriggerTaskStay>) — task lists.sampleDirection—SampleDirectionenum axis used by stay tasks’ position / distance modes.
See CVR Advanced Avatar Settings Trigger for the full list of task fields and UpdateMethod enum values.
Runtime-only properties
Section titled “Runtime-only properties”OwnerId— populated by the contact system.Spawnable— reference to the owningCVRSpawnable; resolved at registration time.
Setting Name vs Parameter
Section titled “Setting Name vs Parameter”The inspector exposes the setting identifier as “Parameter” for spawnables. In code the field is still settingName, matching the AAS trigger. The index (settingIndex) resolves to the CVRSpawnable.syncValues entry.
Related
Section titled “Related”Source
Section titled “Source”CVR-GameFiles/ABI.CCK.Components/CVRSpawnableTrigger.cs, CVR-GameFiles/ABI.CCK.Components/CVRTrigger.cs, CVR-GameFiles/ABI.CCK.Components/CVRTriggerTask.cs, CVR-GameFiles/ABI.CCK.Components/CVRTriggerTaskStay.cs