Table of Contents

Class ContentIdentity

Namespace
Microsoft.Xna.Framework.Content.Pipeline
Assembly
MonoGame.Framework.Content.Pipeline.dll

Provides properties describing the origin of the game asset, such as the original source file and creation tool. This information is used for error reporting, and by processors that need to determine from what directory the asset was originally loaded.

[Serializable]
public class ContentIdentity
Inheritance
ContentIdentity
Inherited Members

Remarks

Initializes a new instance of ContentIdentity with the specified values.

Constructors

ContentIdentity(string, string?, string?)

Provides properties describing the origin of the game asset, such as the original source file and creation tool. This information is used for error reporting, and by processors that need to determine from what directory the asset was originally loaded.

public ContentIdentity(string sourceFilename = "", string? sourceTool = "", string? fragmentIdentifier = null)

Parameters

sourceFilename string

The absolute path to the file name of the asset source.

sourceTool string

The name of the digital content creation (DCC) tool that created the asset.

fragmentIdentifier string

Specific location of the content item within the larger source file. For example, this could be a line number in the file.

Remarks

Initializes a new instance of ContentIdentity with the specified values.

Properties

FragmentIdentifier

Gets or sets the specific location of the content item within the larger source file.

public string? FragmentIdentifier { get; set; }

Property Value

string

SourceFilename

Gets or sets the file name of the asset source.

public string SourceFilename { get; set; }

Property Value

string

SourceTool

Gets or sets the creation tool of the asset.

public string? SourceTool { get; set; }

Property Value

string