Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import Error: RenderTexture.Create failed: requested size is too large. (SVG Problem?) #53

Open
UnityFreelancer opened this issue May 22, 2024 · 1 comment

Comments

@UnityFreelancer
Copy link

RenderTexture.Create failed: requested size is too large.
UnityEngine.RenderTexture:GetTemporary (UnityEngine.RenderTextureDescriptor)
Unity.VectorGraphics.VectorUtils:RenderSpriteToTexture2D (UnityEngine.Sprite,int,int,UnityEngine.Material,int,bool) (at ./Library/PackageCache/[email protected]/Runtime/VectorSprite.cs:378)
Unity.VectorGraphics.Editor.SVGImporter:BuildTexture (UnityEngine.Sprite,string) (at ./Library/PackageCache/[email protected]/Editor/SVGImporter.cs:551)
Unity.VectorGraphics.Editor.SVGImporter:GenerateTexturedSpriteAsset (UnityEditor.AssetImporters.AssetImportContext,UnityEngine.Sprite,string) (at ./Library/PackageCache/[email protected]/Editor/SVGImporter.cs:452)
Unity.VectorGraphics.Editor.SVGImporter:OnImportAsset (UnityEditor.AssetImporters.AssetImportContext) (at ./Library/PackageCache/[email protected]/Editor/SVGImporter.cs:336)
UnityEditor.AssetDatabase:ImportAsset (string)
AkyuiUnity.Xd.SvgToPng:Convert (string,UnityEngine.Vector2,Unity.VectorGraphics.ViewportOptions,AkyuiUnity.Xd.XdImportSettings) (at ./Library/PackageCache/dev.kyubuns.akyuiunityxd@b69aea9811/Editor/Svg/SvgToPng.cs:52)
AkyuiUnity.Xd.ShapeObjectParser/<>c__DisplayClass5_0:b__0 () (at ./Library/PackageCache/dev.kyubuns.akyuiunityxd@b69aea9811/Editor/XdObjectParser/ShapeObjectParser.cs:147)
AkyuiUnity.Xd.XdAssetHolder:Load (string) (at ./Library/PackageCache/dev.kyubuns.akyuiunityxd@b69aea9811/Editor/XdAssetHolder.cs:41)
AkyuiUnity.Xd.XdAkyuiLoader:LoadAsset (string) (at ./Library/PackageCache/dev.kyubuns.akyuiunityxd@b69aea9811/Editor/XdAkyuiLoader.cs:69)
AkyuiUnity.Editor.Importer:ImportAssets (AkyuiUnity.Editor.ScriptableObject.IAkyuiImportSettings,AkyuiUnity.Loader.IAkyuiLoader,AkyuiUnity.Editor.PathGetter,AkyuiUnity.Editor.AkyuiLogger,AkyuiUnity.Editor.IAkyuiProgress) (at ./Library/PackageCache/dev.kyubuns.akyuiunity@b69aea9811/Editor/Importer.cs:191)
AkyuiUnity.Editor.Importer:Import (AkyuiUnity.Editor.ScriptableObject.IAkyuiImportSettings,AkyuiUnity.Loader.IAkyuiLoader,AkyuiUnity.Editor.AkyuiLogger,AkyuiUnity.Editor.IAkyuiProgress) (at ./Library/PackageCache/dev.kyubuns.akyuiunity@b69aea9811/Editor/Importer.cs:87)
AkyuiUnity.Editor.Importer:Import (AkyuiUnity.Editor.ScriptableObject.IAkyuiImportSettings,AkyuiUnity.Loader.IAkyuiLoader[]) (at ./Library/PackageCache/dev.kyubuns.akyuiunity@b69aea9811/Editor/Importer.cs:46)
AkyuiUnity.Xd.XdImporter:Import (AkyuiUnity.Xd.XdImportSettings,string[]) (at ./Library/PackageCache/dev.kyubuns.akyuiunityxd@b69aea9811/Editor/XdImporter.cs:45)
AkyuiUnity.Xd.XdImportSettingsEditor:OnInspectorGUI () (at ./Library/PackageCache/dev.kyubuns.akyuiunityxd@b69aea9811/Editor/XdImportSettingsEditor.cs:38)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

@kyubuns
Copy link
Owner

kyubuns commented May 23, 2024

As the error message indicates, the size of the SVG (created using shapes in XD) seems to be too large.
However, since this is a limitation of Unity’s official Vector Graphics package ( https://docs.unity3d.com/Packages/[email protected]/manual/index.html ) , I can’t think of a solution myself…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants