What do you want to save?
Add Code snippet
New code examples
-
C# 2022-03-27 19:15:02
top down shooting in unity 2D
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Shooting : MonoBehaviour { public Transform firePoint; public GameObject bulletPrefab; public float bulletForce = 20f; // Update is called once... Add solution -
CSS 2022-03-27 15:10:12
leaf falling down in website animation
@keyframes sway { 0% { transform: rotateZ(-15deg) rotateX(55deg); } 30% { transform: rotateZ(20deg) rotateX(60deg); animation-timing-function: ease-in-out; } 60% { transform: rotateZ(-20deg) rotateX(55deg); animation-timing-function: ... Add solution -
Other 2022-03-27 12:00:11
unity make raycast ignore object
Transform targetTransform = null; // target assigned in inspector RaycastHit[] hits; // returned hits LayerMask mask = new LayerMask(); // set in inspector - USE LAYER MASK TO FILTER hits = Physics.RaycastAll(transform.position, transform.forward, ma... Add solution -
C# 2022-03-25 10:50:20
unity how to move an object to another object
// 3D transform.position = new Vector3(GameObject.Find("Object").transform.position.x, GameObject.Find("Object").transform.position.y, GameObject.Find("Object").transform.position.z); // 2D transform.position = new Vector2(G... Add solution -
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 -
SQL 2022-03-24 19:45:27
How to use node-mysql without loads all the rows into the memory? Ask Question
const mysql = require('mysql'); const stream = require('stream'); connection.query('SELECT * FROM `bigdata`') .on('error', function(err) { // Do something about error in the query }) .stream() // Stream allows you to get records one-by-one .p... Add solution