[Solved (bc it was a bug)] EditableMesh does not Display at all!

I want to simply create a Plane with EditableMesh API
Here is my code:

local AS = game:GetService("AssetService")
local RS = game:GetService("RunService")
local p = script.Parent
--setup
local EditMesh:EditableMesh = AS:CreateEditableMesh()

--EditableMesh setup
local width = 100
local height = 100

local offset = 1

local vertexs = {}


--set up vertices
for y = 1, height do
	local data = {}
	for x = 1, width do
		local vertPosition = Vector3.new(x-1, 0, y-1) * offset
		local vertId = EditMesh:AddVertex(vertPosition)

		data[x] = {vertId, vertPosition}
	end

	vertexs[y] = data
end

--setup triangles
for y = 1, height - 1 do
	for x = 1, width - 1 do
		local v1 = vertexs[y][x][1]
		local v2 = vertexs[y+1][x][1]
		local v3 = vertexs[y][x+1][1]
		local v4 = vertexs[y+1][x+1][1]

		EditMesh:AddTriangle(v1,v2,v3)
		EditMesh:AddTriangle(v2,v4,v3)
	end
end

--MeshPart Setup
local newMeshPart = AS:CreateMeshPartAsync(Content.fromObject(EditMesh))
p:ApplyMesh(newMeshPart) 

Nothing displays in the Workspace. This is a Server Script and Im Using Run (not Play) to try to see it.


This is all I see. (FYI There is a MeshPart already set up in that empty space)
I MUST be missing something, any help is appreciated.

This reply is just a “bump” so my post does not get buried.

it seems to be a bug that occurs when all vertices are at the same y-level:

Heh, thanks a lot! At least now I know that it was a bug. Well, doing this on top of an already existing Mesh works just great!

1 Like

No problem. Also, don’t forget to mark this post as resolved so others know.