Method SetExternal
SetExternal(SlotRef, string)
Marks a slot as reading from a named external resource instead of the internal data pool.
public void SetExternal(SlotRef slotRef, string name)
Parameters
slotRefSlotRefThe slot that should resolve externally.
namestringThe external resource name that will later be matched against AddExternalTexture(string, RenderTexture) or AddExternalBuffer(string, ComputeBuffer).
Exceptions
- ArgumentException
Thrown when
nameis null or empty.