What do you want to save?
Add Code snippet
New code examples
-
C# 2021-11-05 01:11:08
unity go towards
transform.position = Vector3.MoveTowards(transform.position, target.position, speed); To better understand : using UnityEngine; using System.Collections; // Vector3.MoveTowards example. // A cube can be moved around the world. It is kept inside a ... Add solution -
C# 2021-10-28 08:09:24
unity set object scale
//gets the local scale of an object vector3 local = transform.localScale; //sets the local scale of an object transform.localScale = new Vector3(scaleX,scaleY,scaleZ); //gets the world scale of the object but is read only vector3 world = transform.lossy... Add solution -
Shell/Bash 2021-10-27 16:08:05
unity get scroll
using System.Collections; using System.Collections.Generic; using UnityEngine; // Input.mouseScrollDelta example // // Create a sphere moved by a mouse scrollwheel or two-finger // slide on a Mac trackpad. public class ExampleClass : MonoBehaviour { ... Add solution -
C# 2021-10-08 16:53:05
unity how to get transform scale
//gets the local scale of an object vector3 local = transform.localScale; //sets the local scale of an object transform.localScale = new Vector3(scaleX,scaleY,scaleZ); //gets the world scale of the object but is read only vector3 world = transform.lossy... Add solution