Class SourceFileMemberAttribute
An attribute indicating whether a member of an asset represents the path to a source file for this asset.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
public sealed class SourceFileMemberAttribute : Attribute
- Inheritance
-
SourceFileMemberAttribute
- Inherited Members
Constructors
SourceFileMemberAttribute(bool)
Initializes a new instance of the SourceFileMemberAttribute class.
public SourceFileMemberAttribute(bool updateAssetIfChanged)
Parameters
updateAssetIfChanged
boolIf true, the asset should be updated when the related source file changes.
Properties
Optional
Gets or sets whether this source file is optional for the compilation of the asset.
public bool Optional { get; set; }
Property Value
UpdateAssetIfChanged
Gets whether the asset should be updated when the related source file changes.
public bool UpdateAssetIfChanged { get; }