Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | NoSleep |
Is there a way to convert PrimitiveMesh (like CubeMesh, PrismMesh, etc.) to ArrayMesh via script?
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | NoSleep |
Is there a way to convert PrimitiveMesh (like CubeMesh, PrismMesh, etc.) to ArrayMesh via script?
Reply From: | Vikrant |
you can easily do this with surface tool by using comit()
function
var surface_tool := SurfaceTool.new()
surface_tool.create_from(your_primitive_mesh,0)
var array_mesh := surface_tool.commit()
check out docs for more help