What’s the recommended way to do this now OnPopulateMesh is obsolete?
[RequireComponent(typeof(RectTransform))]
public class EmptyGraphic : Graphic
{
protected override void OnPopulateMesh(Mesh m)
{
m.Clear();
}
}
What’s the recommended way to do this now OnPopulateMesh is obsolete?
[RequireComponent(typeof(RectTransform))]
public class EmptyGraphic : Graphic
{
protected override void OnPopulateMesh(Mesh m)
{
m.Clear();
}
}
It’s replaced with
protected override void OnPopulateMesh(VertexHelper vh)
Check the UI Primitives scripts in the UI Extensions project (develop_5.3 branch) for some examples for how to update any code you may have. (compare the different branches from 4.6 to 5.3)
Basically, that method signature only lasted for the base release and was updated in the first “patch” release.