Skip to content

Instantly share code, notes, and snippets.

View Mylab6's full-sized avatar

MyLab6 Mylab6

  • I might have a cool job ...
View GitHub Profile
using System;
using UnityEngine;
public class TriggerMeshRenderOff : MonoBehaviour
{
public AudioSource audioSource;
public AudioClip audioClip;
private void Awake()
{
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
public class ColorChange : MonoBehaviour{
public List<Color> colors ;
public int currentColor ;
public Renderer rend;
public bool eyeControl ;
void Awake() {
using UnityEngine;
public class BasicPositionReset : MonoBehaviour{
public UnityEngine.Vector3 startPos ;
public UnityEngine.Quaternion startRotation ;
void Awake(){
startPos = transform.position ;
startRotation = transform.rotation;
@Mylab6
Mylab6 / CamControl.cs
Created August 2, 2022 22:39
Switch Cinemachine cameras during gameplay.
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using Cinemachine;
public class CamControl : MonoBehaviour
{
public List<CinemachineVirtualCamera> virtualCameras;
@Mylab6
Mylab6 / TextureCruncher.cs
Created May 5, 2022 17:29
Texture Cruncher for Unity. Dramatically reduce build sizes by reducing Max texture size, must be inside of an Editor folder.
using UnityEditor;
using UnityEngine;
using System.Collections;
using System.Linq;
public class TextureCruncher : EditorWindow
{
#region Variables
int compressionQuality = 100;