Class BuildOverwriteProtectedAttribute
When applied together with InjectContextAttribute on a field, context injection skips assigning from the build context if the field already holds a non-null value, so existing references are preserved.
Implements
Inherited Members
Namespace: UnityEditor.Build.Pipeline.Injector
Assembly: Unity.ScriptableBuildPipeline.Editor.dll
Syntax
[AttributeUsage(AttributeTargets.Field)]
public class BuildOverwriteProtectedAttribute : Attribute, _Attribute
Remarks
Only meaningful for fields that participate in injection (for example, In or InOut). Extraction is unaffected. If the field is null, injection proceeds as usual.