ReverseMesh.cs 431 B

12345678910111213141516171819
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class ReverseMesh : MonoBehaviour
  5. {
  6. // Start is called before the first frame update
  7. void Start()
  8. {
  9. Mesh mesh = GetComponent<MeshFilter>().mesh;
  10. System.Array.Reverse(mesh.triangles);// = mesh.triangles.Reverse();//.ToArray();
  11. }
  12. // Update is called once per frame
  13. void Update()
  14. {
  15. }
  16. }