- If ShouldCleanUpOnLoadMap is checked, the system will release loaded assets when switching levels
- RenderMagnification means: if RenderSize is 60 and RenderMagnification is 3, then the actual texture size is 60*3=180
- Options with the Preview keyword will not affect anything running, they are only useful for previewing.
- Create Primary Asset Types(Directory is your SVG asset Dir,Base Class must be SvgWrapper):
- Register assets with the system using the RegisterSvgAssets function (Choose your asset type):
- Directly drag the svg file into the directory just now
- Double-click to enter the asset editor
- By default, the ID of the SVG asset is the file name. It is recommended to replace the "-" of the svg file with "_". If you understand the content of the SVG asset, you can modify the SVG file directly here. Note that the rendering size and background color will only change the preview.
In the widget, use SVG Image to display your icon. The settings in the Preview column can facilitate debugging. The information in Runtime is the settings used when the game is actually running. When the Render Color is the default transparent color, the system will use SVG The color set in the file.
you can change svg image id at runtime