com.amanotes.curvytile
v1.0.2
Published
Advanced curved mesh generation system for Unity with dynamic slicing and UV mapping
Readme
CurvyTile
Package: com.amanotes.curvytile
Version: 1.0.2
Procedural curved mesh generation system for Unity with dynamic slicing, UV mapping, and automatic collider generation.
Features
- 🎮 Procedural mesh generation from control points
- 🎯 Multiple curve types (Uniform, Stretch, Straight)
- 🎨 Sprite-based UV mapping with 9-slice border support
- 🚀 Fill range control for progress animations
- 🔧 Automatic collider generation for curved paths
- ✅ Material pooling for efficient color/alpha modifications
Documentation
Complete documentation: Docs/CurvyTile-API.md
Installation
Add the package to your Unity project via Packages/manifest.json:
{
"dependencies": {
"com.amanotes.curvytile": "1.0.2"
},
"scopedRegistries": [
{
"name": "npmjs",
"url": "https://registry.npmjs.org/",
"scopes": [
"com.amanotes.curvytile"
]
}
]
}Quick Start
public class CurvyTileExample : MonoBehaviour
{
void Start()
{
var curvyTile = gameObject.AddComponent<CurvyTile>();
curvyTile.SetSprite(mySprite);
curvyTile.SetMaterial(myMaterial);
var pivotControls = new List<PivotControl>
{
new PivotControl(new Vector3(0, 0, 0)),
new PivotControl(new Vector3(2, 0, 5)),
new PivotControl(new Vector3(4, 0, 10))
};
curvyTile.SetPivotControls(pivotControls);
curvyTile.Refresh();
}
}API Reference
Key Classes
CurvyTile
- Purpose: Main component for curved mesh generation
- Key methods:
SetPivotControls(),SetSprite(),SetMaterial(),Refresh()
PivotControl
- Purpose: Defines control points with position, rotation, and curve type
- Key properties:
position,rotation,curveType,useExplicitRotation
Dependencies
- Unity 2022.3+
Version History
See CHANGELOG.md
