What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-09 23:49:07
3d mouse raycast object hit name
if ( Input.GetMouseButtonDown (0)){ RaycastHit hit; Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition); if ( Physics.Raycast (ray,out hit,100.0f)) { StartCoroutine(ScaleMe(hit.transform)); Debug.Log("You selected the &q... Add solution -
C# 2021-11-08 14:48:26
compass direction mobile unity
using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; using System; public class CompassBehaviour : MonoBehaviour { public TextMeshPro headingText; private bool startTracking = false; void Start() { Input.compass.enab... Add solution -
C# 2021-10-30 03:34:19
how to change rotate with script unity
var rotationVector = transform.rotation.eulerAngles; rotationVector.z = 0; //this number is the degree of rotation around Z Axis transform.rotation = Quaternion.Euler(rotationVector); //if you put this in a coroutine and yielding for some amount of time ... Add solution -
Python 2021-10-28 07:30:11
hypixel api python
# Import the Module import PyPixel # Importing asyncio so we can call coroutines import asyncio # Initialize the Hypixel class hypixel = PyPixel.Hypixel(api_key="API Key") async def main(): # Get tha player's UUID uuid = await hypixel.... Add solution -
C# 2021-10-25 19:53:08
how to make a line of code wait unity
//In the example below the script will right "Hello" and 3 seconds later write "Goodbye" in the console Start() { //Call the function Example() StartCoroutine(Example()); } Example() { Debug.Log("Hello"); //wait 3 ... Add solution