Class PropertyOverrides<T>
Provides typed queries for local and effective property overrides during asset loading.
public sealed class PropertyOverrides<T> where T : notnull
Type Parameters
T
- Inheritance
-
PropertyOverrides<T>
- Inherited Members
Methods
IsEffectivelyOverridden(string, PropertyPath<T>)
Reports whether the effective value receives the property from this document or a parent.
public bool IsEffectivelyOverridden(string assetKey, PropertyPath<T> property)
Parameters
assetKeystringpropertyPropertyPath<T>
Returns
IsOverridden(string, PropertyPath<T>)
Reports whether the asset's own document supplied the property.
public bool IsOverridden(string assetKey, PropertyPath<T> property)
Parameters
assetKeystringpropertyPropertyPath<T>
Returns
LastOverrideOrder(string, PropertyPath<T>)
Returns the document order of the property's final local occurrence.
public int? LastOverrideOrder(string assetKey, PropertyPath<T> property)
Parameters
assetKeystringpropertyPropertyPath<T>
Returns
- int?
TryGetEffectiveOverride(string, PropertyPath<T>, out string, out int)
Finds the nearest document whose modification contributes the effective property.
public bool TryGetEffectiveOverride(string assetKey, PropertyPath<T> property, out string sourceAssetKey, out int order)
Parameters
assetKeystringpropertyPropertyPath<T>sourceAssetKeystringorderint
Returns
TryGetParent(string, out string)
Gets the resolved materialization parent while the load candidate is active.
public bool TryGetParent(string assetKey, out string parentKey)