Skip to content

Instantly share code, notes, and snippets.

View Ryan-0C's full-sized avatar

Ryan Ryan-0C

View GitHub Profile
@Ryan-0C
Ryan-0C / SmoothGameCameraMovement.cs
Created May 10, 2023 03:03 — forked from IRCSS/SmoothGameCameraMovement.cs
Unity Camera Movement in Game view like Scene View with filtering
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// Moves Camera similar to how camera is moved in the Unity view port. Drop the scrip on the game object which has the camera and you wish to move.
public class SmoothGameCameraMovement : MonoBehaviour
{
public float lateralSpeed = 0.0015f;