Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Modding:Modder Guide/APIs/Content
(view source)
Revision as of 02:15, 4 July 2022
106 bytes added
,
02:15, 4 July 2022
→Read mod assets
Line 43:
Line 43:
// read an image file
// read an image file
Texture2D texture = helper.ModContent.Load<Texture2D>("assets/texture.png");
Texture2D texture = helper.ModContent.Load<Texture2D>("assets/texture.png");
+
// alternatively
+
IRawTextureData texture = helper.ModContent.Load<IRawTextureData>("assets/texture.png");
// read a map file
// read a map file
Atravita
528
edits
Navigation menu
Personal tools
Create account
Log in
Namespaces
Modding
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Admin noticeboard
Help Editing
Random page
Official Links
Official Site
Official Forums
Official Merchandise
Discord
Reddit
Tools
Upload file
Special pages
Printable version