Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

How can i fix this error Assets\MeshGenerator.cs(24,29): error CS0443: Syntax error; value expected

$
0
0
This is the script using System.Collections; using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(MeshFilter))] public class MeshGenerator : MonoBehaviour { Mesh mesh; Vector3[] vertices; int[] triangles; // Start is called before the first frame update void Start() { mesh = new Mesh(); GetComponent().mesh = mesh; CreateShape(); } UpdateMesh(); void CreateShape () { {vertices = vector3[];}; { new vector3 (0,0,0); new vector3 (0,0,1); new vector3 (1,0,0); }; triangles = new int[] { 0, 1, 2 }; } } void UpdateMesh() { mesh.clear(); mesh.vertices = vertices; mesh.triangles = triangles; }

Viewing all articles
Browse latest Browse all 2891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>