What do you want to save?
Add Code snippet
New code examples
-
C# 2022-03-04 05:20:02
how to move player with finger touch in unity
if (Input.touchCount > 0) { Touch touch = Input.GetTouch(0); // get first touch since touch count is greater than zero if (touch.phase == TouchPhase.Stationary || touch.phase == TouchPhase.Moved) { // get the touch position ... Add solution -
C 2022-02-06 13:30:20
first person view unity
// C Sharp public Transform followTarget; public Vector3 targetOffset; public float moveSpeed = 2f; private Transform myTransform; void Start(){ myTransform = transform; } public void SetTarget(Transfrom aTransform){ followTarget = aTransform; } vo... Add solution -
C# 2021-11-06 22:09:09
unity character controller moving platform
using System.Collections; using System.Collections.Generic; using UnityEngine; public class SC_MovingPlatform : MonoBehaviour { public Transform activePlatform; CharacterController controller; Vector3 moveDirection; Vector3 activeGlobalP... Add solution