26
2024
Customize SpriteShapeRenderer quality (but has issues)
Tried using custom shader to have “bend” surface for SpriteShapeRenderer, and it works.. but the mesh is so low resolution, that it doesnt look nice.. Then tried to increase SpriteShape mesh resolution, which worked – but inner mesh and collider broke. (and didnt have time to look further..)
Steps:
- import SpriteShape Package
- Make it editable (Right click over SpriteShape in Project/Packages/, Show in Explorer)
- Move the folder from Library/PackageCache/ into project Packages/ folder
- Open com.unity.2d.spriteshape\Runtime\SpriteShapeGenerator.cs
- Modify kHighestQualityTolerance value to some higher value
- Open com.unity.2d.spriteshape\Runtime\SpriteShape.cs
- Adjust public enum QualityDetail High value to something higher (like 24)
- Get back to Unityt Editor, adjust quality dropdown to update mesh
Problems:
– Inner mesh is broken, collider is broken..
Making of
Leave a comment
Recent posts
- Customize SpriteShapeRenderer quality (but has issues)
- Editor tool: Copy selected gameobject’s names into clipboard as rows (for Excel)
- Editor tool: Replace string in selected gameobject’s names
- UnityHub: Enable built-in Login Dialog (no more browser login/logout issues!)
- Use TikTok-TTS in Unity (with WebRequest)
- Create Scene Thumbnail Image using OnSceneSaved & OnPreviewGUI
- webgl+javascript TTS
- Using Moonsharp (LUA) + Unity Webgl
- Using 3D gameobject prefabs with Unity Tilemap + NavMesh Surface
- Custom Unity Hub Project Template Preview Image/Video (using HTML+CSS in package description)
- Check if point is inside polygon 2D (using line intersection)
- UnityHub: Enable Create Project Button (without having to select Cloud Organization)
Recent Comments
- Vector3 maths for dummies! on
- [Asset Store] Point Cloud Viewer & Tools on
- [Asset Store] Point Cloud Viewer & Tools on
- Vector3 maths for dummies! on
- [Asset Store] Mobile Paint *now free on
- Scorched Earth Terrain (wip) on
- UI Text TypeWriter Effect [Script] on
- [Asset Store] Point Cloud Viewer & Tools on