playMaker

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

Ateam

  • Full Member
  • ***
  • Posts: 116
Mesh geometry actions for playmaker(is possible?)
« 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;
    }
}

tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 768
Re: Mesh geometry actions for playmaker(is possible?)
« Reply #1 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.