Playmaker Forum

PlayMaker Feedback => Action Requests => Topic started by: Ateam on May 17, 2017, 12:24:20 PM

Title: Mesh geometry actions for playmaker(is possible?)
Post by: Ateam on May 17, 2017, 12:24:20 PM
is possible make something like this in playmaker?

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour {
    public Vector3[] newVertices;
    public Vector2[] newUV;
    public int[] newTriangles;
    void Start() {
        Mesh mesh = new Mesh();
        GetComponent<MeshFilter>().mesh = mesh;
        mesh.vertices = newVertices;
        mesh.uv = newUV;
        mesh.triangles = newTriangles;
    }
}
Title: Re: Mesh geometry actions for playmaker(is possible?)
Post by: tcmeric on May 17, 2017, 01:11:00 PM
I think you would need to code custom actions in order to handle that. That being said, you could make custom actions to do those kinds of things with playmaker.

Do you have something you want to make? I am not super familiar with meshFilter.