次の方法で共有


ContentProcessorContext.BuildAndLoadAsset Generic Method (Generic ExternalReference, String)

Initiates a nested build of the specified asset and then loads the result into memory.

Namespace: Microsoft.Xna.Framework.Content.Pipeline
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)

Syntax

public TOutput BuildAndLoadAsset<TInput,TOutput> (
         ExternalReference<TInput> sourceAsset,
         string processorName
)

Type Parameters

  • TInput
    Type of the input.
  • TOutput
    Type of the converted output.

Parameters

  • sourceAsset
    Reference to the source asset.
  • processorName
    Optional processor for this content.

Return Value

Copy of the final converted content.

Remarks

An example of usage would be a mesh processor calling BuildAndLoadAsset to build any associated textures and replace the original .tga file references with an embedded copy of the converted texture.

See Also

Reference

ContentProcessorContext Class
ContentProcessorContext Members
Microsoft.Xna.Framework.Content.Pipeline Namespace

Platforms

Windows XP SP2, Windows Vista