ContentProcessorContext.BuildAndLoadAsset<TInput,TOutput> Method (Microsoft.Xna.Framework.Content.Pipeline)
Initiates a nested build of the specified asset and then loads the result into memory.
Namespace: Microsoft.Xna.Framework.Content.Pipeline
Assembly: MonoGame.Framework.Content.Pipeline (MonoGame.Framework.Content.Pipeline.dll 3.8.0.1082)
Assembly: MonoGame.Framework.Content.Pipeline (MonoGame.Framework.Content.Pipeline.dll 3.8.0.1082)
- C#
- VB
- F#
public TOutput BuildAndLoadAsset<TInput,TOutput>( ExternalReference<TInput> sourceAsset, string processorName )
Syntax for VB is not yet implemented.
Syntax for F# is not yet implemented.
Parameters
- sourceAsset
-
Type: ExternalReference<TInput>
Reference to the source asset.
- processorName
-
Type: System.String
Optional processor for this content.
Return Value
Type: TOutputCopy of the final converted content.
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.
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows DirectX Desktop
Linux Desktop