MaterialContent.SetProperty<T> Method (Microsoft.Xna.Framework.Content.Pipeline.Graphics)

Sets a value in the contained OpaqueDataDictionary object. If null is passed, the value is removed.

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: MonoGame.Framework.Content.Pipeline (MonoGame.Framework.Content.Pipeline.dll 3.8.0.1082)
  • C#
  • VB
  • F#
protected void SetProperty<T>(
	string key, 
	T value
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

key
Type: System.String
Name of the key being modified.
value
Type: T
Value being set.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop