Initial Commit
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
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()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user