这是indexloc提供的服务,不要输入任何密码
Skip to content

Girildo/SkiaForUnity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

SkiaSharp for Unity

SkiaSharp for Unity is a plugin that brings the power and flexibility of SkiaSharp, a 2D graphics library, to the Unity game development environment. With SkiaSharp for Unity, you can create high-quality, cross-platform 2D graphics and user interfaces for your Unity projects. This package also includes the Skottie library for working with Lottie animations.

SkiaSharp is a .NET binding to the Skia library, which is used by popular platforms such as Google Chrome, Android, and Flutter. By integrating SkiaSharp into Unity, you can leverage its extensive set of APIs for rendering vector graphics, text, and images.

Features

  • High-performance graphics: SkiaSharp for Unity utilizes Skia's hardware-accelerated rendering capabilities to deliver fast and smooth graphics performance.

  • Cross-platform support: SkiaSharp supports multiple platforms, including Windows, macOS, iOS, Android, allowing you to create graphics that work seamlessly across different devices.

  • Extensive API: SkiaSharp provides a rich set of APIs for drawing paths, shapes, text, and images, enabling you to create visually stunning graphics and user interfaces.

  • Custom shaders: With SkiaSharp for Unity, you can write custom shaders using the Skia graphics API, allowing you to create unique visual effects and stylized graphics.

  • Lottie animations: The package includes the Skottie library, which enables you to import and play Lottie animations in your Unity projects.

  • Integration with Unity: SkiaSharp for Unity integrates seamlessly with the Unity Editor, providing a familiar development environment for working with Skia graphics and Lottie animations in your Unity projects.

Getting Started

To get started with SkiaSharp for Unity, follow these steps:

  1. Clone or download the SkiaSharp for Unity repository from GitHub.

  2. Import the SkiaSharp package into your Unity project.

  3. In Unity, go to Edit > Project Settings > Player and select the iOS platform.

  4. Scroll down to the Other Settings section and locate the Scripting Define Symbols field.

  5. Add __ UNIFIED _ _ and _ IOS _ to the Scripting Define Symbols. This is necessary to enable the SkiaSharp functionality specifically for iOS.

  6. Create a new script or modify an existing script to leverage the SkiaSharp API for drawing graphics and the Skottie API for playing Lottie animations.

  7. Build and run your Unity project on an iOS device to see the Skia graphics and Lottie animations in action.

Contributing

Contributions to SkiaSharp for Unity are welcome! If you encounter any issues, have suggestions for improvements, or would like to contribute code, please feel free to open an issue or submit a pull request on the GitHub repository.

License

SkiaSharp for Unity is licensed under the MIT License. Please refer to the LICENSE file for more information.

Support

If you have any questions, need assistance, or want to join a community of developers using SkiaSharp for Unity, you can:

Acknowledgements

SkiaSharp for Unity

is built on top of the amazing SkiaSharp library and includes the Skottie library for Lottie animations. We would like to express our gratitude to the SkiaSharp and Skottie communities for their hard work and dedication in developing and maintaining these powerful libraries.

Authors

SkiaSharp for Unity is developed and maintained by Qais Ammari.

About

Skia For Unity with lottie animations, harfbuzz, svg supports

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%