What do you want to save?
Add Code snippet
New code examples
-
Other 2022-03-24 23:25:02
character controller unity crouch
#pragma strict private var ch : CharacterController; private var startHeight : float; // initial height function Start() { ch = GetComponent(CharacterController); startHeight = ch.height; } function Update() { var newH : float = startHei... Add solution -
-
C# 2022-02-27 21:40:09
slomotion in unity 3d
using UnityEngine; using System.Collections; public class SlowMotion : MonoBehaviour { float currentAmount = 0f; float maxAmount = 5f; // Use this for initialization void Start () { } // Update is called once per frame void Update () { if(Input.GetK... Add solution -
Javascript 2022-02-18 10:55:26
js find key by value in object
function getKeyByValue(object, value) { return Object.keys(object).find(key => object[key] === value); } const map = {"first" : "1", "second" : "2"}; console.log(getKeyByValue(map,"2")); Add solution -
Other 2022-02-13 20:35:27
using a keybpad in arduino
#include <Keypad.h> const byte ROWS = 4; const byte COLS = 4; char hexaKeys[ROWS][COLS] = { {'1', '2', '3', 'A'}, {'4', '5', '6', 'B'}, {'7', '8', '9', 'C'}, {'*', '0', '#', 'D'} }; byte rowPins[ROWS] = {9, 8, 7, 6}; byte colPins[COLS]... Add solution -
C# 2022-02-12 04:45:13
first person camera controller unity
//Fixed the issues with the previous controller using System.Collections; using System.Collections.Generic; using UnityEngine; public class CameraLook : MonoBehaviour { public float minX = -60f; public float maxX = 60f; public float sensitivity; pub... Add solution