playMaker

Author Topic: Mesh geometry actions for playmaker(is possible?)  (Read 243 times)

Ateam

  • Junior Playmaker
  • **
  • Posts: 60
    • View Profile
Mesh geometry actions for playmaker(is possible?)
« on: May 17, 2017, 09:24:20 AM »
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;
    }
}

tcmeric

  • Sr. Member
  • ****
  • Posts: 480
    • View Profile
Re: Mesh geometry actions for playmaker(is possible?)
« Reply #1 on: May 17, 2017, 10:11:00 AM »
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.