I am trying to make a program that needs to load texture and sound contents from a file that is not compiled in the content manager or Content.mgcb file in C# with MonoGame 3.6. Players would be able to find the directory and replace the content files that need to be loaded after the program is installed on their phones or desktop computers. How can I do that?
Textures:
Texture2D.FromStream
byte[]
, Color[]
). Construct a new Texture2D
with the dimensions and format of the data. Upload to the texture with SetData
.Audio:
Song.FromUri
SoundEffect.FromStream
SoundEffect
with the PCM data and metadata.Fonts:
SpriteFont
implementation.