fixed compatibiliy with newer Unity versions and URP#12
fixed compatibiliy with newer Unity versions and URP#12Pellelle wants to merge 1 commit intojaroslavstehlik:masterfrom
Conversation
|
These are great changes except some projects don't use the Scriptable Render Pipeline, so maybe stick with the old Camera.onPreRender callbacks in SVGAtlas.cs? |
|
Well, maybe it should just not be merged, as it loses compatibility with older versions. But I would hope this pull request could help others find this fix. |
|
That is correct, this would break compatibility with older version of Unity. |
|
How could you check at compile time for the Scriptable Render Pipeline package? Although I'm using Unity 2020.3 (no SRP package) with the Camera.onPreRender event callback and it seems to work fine with gradients. |
|
You could look via reflection if the class in the right assembly exist and if it exist, then you can add that define symbols to the build settings. |
|
If you have an asmdef, then you can use this feature to check for an installed package and then add a #define for that particular feature: https://docs.unity3d.com/2020.3/Documentation/Manual/class-AssemblyDefinitionImporter.html#version-defines |
|
Failed to load '.../Assets/SVG Importer/Example Projects/Curves Demo/Graphics/Space/star.asset'. File may be corrupted or was serialized with a newer version of Unity. :(((((((((((((((((((((((((((((((((((( |
No description provided.