
Decal Collider – one-click mesh & physics for decals, alpha-trimmed, runtime API, all render pipelines.🚀 Decal Collider takes the pain out of decal physics!Generate perfect, alpha-trimmed visual meshes and matching MeshColliders in a single click. No more invisible gaps or oversized hitboxes. Just drop it into any render pipeline and start projecting.✨ Key Features🛠️ One-Click Build – Select the Decal → hit Rebuild → done.🎯 Pixel-Perfect Colliders – Colliders are trimmed to your decal’s alpha, so players only hit what they see.💥 18 Projection Directions – Forward, inverse, box, hemisphere & more.⚙️ Live Scene Handles – Move, rotate, and adjust depth and mesh offset directly in the Scene view.📦 Runtime API – Full C# API (with XML documentation) for procedural decals, analytics, and pooling.⏳ Stats Panel – Instantly see the triangle count, ray count, build time, and memory usage.♻️ Undo-Safe & Prefab-Friendly – Works in Edit & Play mode, fully supports Prefabs.🛡️ Zero Runtime GC – Optimized for mobile.🌈 Built-in, URP, HDRP – Tested with Unity 2022.3 LTS+.📂 What’s Inside?⚙️ Core DecalCollider component (runtime & editor scripts)🖥️ Editor Tools: custom inspector, gizmos, beam visualiser🎮 Demo Scenes: stickers of important world locations and a world map📚 PDF & Online Documentation + quick-start guide🐉 Sample Textures (CC0)🔌 IntegrationImport the package.Select any object in your scene and add the DecalCollider component via the "Add Component" button in the Inspector panel.Click 'Rebuild' – the collider & visual mesh are generated instantly.(Optional) Control everything at runtime via DecalCollider.Build(), RebuildSafe(), or the fluent API.🔖 RequirementsUnity 2022.3 LTS+Render Pipelines: Built-in, URP, HDRPNeed help or have a feature request? Join our DiscordThank you for checking out Decal Collider – happy projecting! 🎉🔍 Technical DetailsCompatibility🏗 Unity – 2022.3 LTS or newer (Mono & IL2CPP)🌈 Render Pipelines – Built-in, URP (forward & deferred), HDRP (2021.3+)🖥 Platforms – Windows (DX11/12), macOS (Metal), Linux, Android (GLES3/Vulkan), iOS (Metal), WebGL 2.0Physics & Mesh🎯 Pixel-Perfect Colliders – Triangle trimming matches alpha mask exactly🔄 Convex / Non-Convex – Toggle per decal for dynamic or static objects🕳 18 Projection Modes – Forward, reverse, double-sided, box volume, hemisphere, custom normalEditor Tooling✋ Live Handles – Move, rotate, offset & thickness directly in Scene view🧩 Custom Inspector – Foldout groups: Projection, Mesh, Physics, Alpha Mask, Layers♻️ Undo / Redo Safe – Full history tracking, prefab overrides preserved📊 Stats Overlay – Triangles, ray count, build time, memory in real timeAPI & Extensibility💻 Pure C# Source – ~1 900 LOC, fully namespaced, no external plugins🔌 Key Calls – Build(), RebuildSafe(), BuildAsync(), fluent setters for chaining🛠 Events – OnBuildStarted, OnBuildFinished, OnAlphaSample for analytics🧠 How AI/ML Was Used🎨 Content Generation – Sample decal textures and banner images were created with ChatGPT (Dall-E). All outputs were manually curated and retouched; no copyrighted material or AI model files are included in the package.🤖 Code Assistance – ChatGPT (GPT-4) acted as a pair-programmer during prototyping, suggesting C# API names, optimisation ideas and documentation drafts. Every line of production code was hand-written, reviewed and unit-tested by the author.📝 Marketing Copy & Docs – ChatGPT helped draft store descriptions, changelogs and manual sections; all text was later edited and approved by a human.🚫 No Runtime AI – The shipped asset contains no generative AI at runtime, collects no user data and trains no models.✅ Compliance – The author accepts full responsibility for all included content and confirms adherence to Unity’s AI/ML guidelines.