Table of Contents

Class SourceFileMemberAttribute

Namespace
Stride.Core.Assets
Assembly
Stride.Core.Assets.dll

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 bool

If 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

bool

UpdateAssetIfChanged

Gets whether the asset should be updated when the related source file changes.

public bool UpdateAssetIfChanged { get; }

Property Value

bool