8000 GitHub - tsdaer/SVG_Support
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tsdaer/SVG_Support

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Runtime SVG System

Download plugin(fab)

Media

How to use SVG Editor

How to use SVG Runtime

Note

  1. If ShouldCleanUpOnLoadMap is checked, the system will release loaded assets when switching levels
  2. RenderMagnification means: if RenderSize is 60 and RenderMagnification is 3, then the actual texture size is 60*3=180
  3. Options with the Preview keyword will not affect anything running, they are only useful for previewing.

Tutorial

Base Class has been renamed to SvgWrapper!!!

  1. Create Primary Asset Types(Directory is your SVG asset Dir,Base Class must be SvgWrapper):image-20240326190937156
  2. Register assets with the system using the RegisterSvgAssets function (Choose your asset type):image-20240326191312862
  3. Directly drag the svg file into the directory just nowimage-20240326191710812
  4. Double-click to enter the asset editorimage-20240326191813791
  5. 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.
  6. image-20240326192346693In 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.
  7. image-20240326192756271you can change svg image id at runtime

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0