Cant create EditableMeshes or EditableImages

Hello! ^^
I wanted to try EditableMeshes and Images last time, but somehow im not able to create them, even tho i turned on the beta feature for it.


this is not how you create an editable mesh anymore. It has changed, you can find everything you need to know here

im sorry to bother you, but when i follow this documentation, nothing appears to work for me. Even when i use editableMesh:CreateMeshPartAsync(), [like in this forum post from roblox] i get the warning that its depreceated, and my mesh wont even appear

no worries they are still working on it and it changes a lot, i understand the confusion.
here is a simple script that will create 1 triangle

local AssetService = game:GetService("AssetService")

local vertexPositions = {
	Vector3.new(10, 10, 10),
	Vector3.new(10, 10, 0),
	Vector3.new(0, 11, 10) --> there is currently a bug that if all Y positions are the same the mesh will be invisible that's why it's 11 here
}

local editableMesh = AssetService:CreateEditableMesh({Size = Vector3.one})

local v1 = editableMesh:AddVertex(vertexPositions[1])
local v2 = editableMesh:AddVertex(vertexPositions[2])
local v3 = editableMesh:AddVertex(vertexPositions[3])

editableMesh:AddTriangle(v1, v2, v3)

local meshPart = AssetService:CreateMeshPartAsync(Content.fromObject(editableMesh))
meshPart.Anchored = true
meshPart.Position = Vector3.new(0, 20, 10)
meshPart.Parent = workspace

it is possible that it changes again in the future.

2 Likes

thanks ^^
and btw, i noticed that if the size is bigger, then roblox has issues to render it when you get close to it with the camera