What do you want to save?
Add Code snippet
New code examples
-
-
C# 2021-08-31 16:50:02
simple enemy spawning Unity
using System.Collections; using System.Collections.Generic; using UnityEngine; public class GameManagerScript : MonoBehaviour { //This variables will be used to make the limits of the spawn area public Vector2 EnemyAreaLimitUpLeft; public Vec... Add solution -
C# 2021-08-31 14:36:02
unity 2d ontriggerenter2d same parameter error
using System.Collections; using System.Collections.Generic; using UnityEngine; public class FieldOfView : MonoBehaviour { public GameObject Player, Enemy, MainCamera; public Animator FOVAnimator, PlayerAnimator, EnemyAnimator; void OnTriggerE... Add solution -
C# 2021-08-31 14:28:01
unity mobile controls
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Movement : MonoBehaviour { //variables public float moveSpeed = 300; public GameObject character; private Rigidbody2D characterBody; private float ScreenWid... Add solution -
Shell/Bash 2021-08-31 11:58:02
install unity in ubuntu
sudo apt install ubuntu-unity-desktop Add solution -
-
Shell/Bash 2021-08-31 06:46:03
unity gitignore
# This .gitignore file should be placed at the root of your Unity project directory # # Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore # /[Ll]ibrary/ /[Tt]emp/ /[Oo]bj/ /[Bb]uild/ /[Bb]uilds/ /[Ll]ogs/ /[Uu]ser[Ss]ettings/... Add solution -
C# 2021-08-31 01:44:01
how to make a camera follow an object in unity 2d
using System.Collections; using System.Collections.Generic; using UnityEngine; public class CameraController : MonoBehaviour { //Object you want to follow public Transform target; //Set to z -10 public Vector3 offset; //How ... Add solution