Skip to content

UnityMesh is a Unity C# library for generating procedural meshes at runtime. It provides reusable components for creating and manipulating quad and cube meshes, making it easy to build custom 3D geometry in your Unity projects.

License

Notifications You must be signed in to change notification settings

highnet/UnityMesh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

UnityMesh

UnityMesh is a Unity C# library for generating procedural meshes at runtime. It provides reusable components for creating and manipulating quad and cube meshes, making it easy to build custom 3D geometry in your Unity projects.

Core Technologies

  • Unity Engine (C#)
  • Procedural mesh generation
  • Custom MonoBehaviour components

Overview

  • QuadMesh.cs: A MonoBehaviour for generating a quad (rectangle) mesh. It exposes width, height, and material properties, and generates vertices, triangles, normals, and UVs for a 2D quad in the X-Y plane.
  • CubeMesh.cs: A MonoBehaviour for generating a cube mesh. It exposes width, height, breadth, and material properties, and generates all vertices, triangles, normals, and UVs for a 3D cube.

Both components are designed to be attached to GameObjects with a MeshFilter and Renderer. Mesh data is updated every frame, allowing for dynamic mesh manipulation.

Getting Started

Prerequisites

  • Unity 2021.3 LTS or newer (any recent Unity version should work)
  • .NET Framework 4.x (default for Unity projects)

Installation

  1. Copy the contents of the src/ directory into your Unity project's Assets/ folder.
  2. Attach the QuadMesh or CubeMesh component to a GameObject with a MeshFilter and Renderer.
  3. Assign a material in the Inspector and set the desired dimensions.

License

This project is licensed under the MIT License. See LICENCE.md for details.

Code of Conduct

Participation in this project is governed by the Code of Conduct.

Contributing

Contributions are welcome! Please read CONTRIBUTING.md for guidelines.

Security

If you discover a security vulnerability, please see SECURITY.md for reporting instructions.

Support

For questions or support, please open an issue in the repository.

Contact

Project maintained by Joaquin Telleria. For inquiries, please use the issue tracker.

Acknowledgements

  • Unity Technologies for the Unity Engine
  • Open source contributors

About

UnityMesh is a Unity C# library for generating procedural meshes at runtime. It provides reusable components for creating and manipulating quad and cube meshes, making it easy to build custom 3D geometry in your Unity projects.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages