Files
2025-07-04 20:33:06 +03:00

40 lines
817 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
using System.IO;
using System;
public class samibagpula : MonoBehaviour
{
public Mesh mesh;
public float bigNumber = 0.0000001f;
// Start is called before the first frame update
void Start()
{
var vertices = mesh.vertices;
var normals = mesh.normals;
var uvs = mesh.uv;
var triangles = mesh.triangles;
// move the first half of the vertices left
for (int i = 0; i < vertices.Length / 2; i++)
{
vertices[i].x += bigNumber;
}
mesh.vertices = vertices;
mesh.RecalculateBounds();
}
// Update is called once per frame
void Update()
{
}
}