What do you want to save?
Add Code snippet
New code examples
-
C# 2021-11-07 23:17:18
let the plaer draw in unity
// Write black pixels onto the GameObject that is located // by the script. The script is attached to the camera. // Determine where the collider hits and modify the texture at that point. // // Note that the MeshCollider on the GameObject must have Conve... Add solution -
C# 2021-10-19 11:14:08
unity gameobject.getcomponent
//First script public class Enemy : MonoBehaviour{ public int health = 10; public void saySomething(){ Debug.Log("Hi, i am an enemy."); } } //Second script //There is one thing though, //if the script is located on another gameobjec... Add solution -
Go 2021-10-18 04:23:09
how to make enemy go in one direction unity 2d
using System.Collections; using System.Collections.Generic; using UnityEngine; public class EnemyPatrol : MonoBehaviour { public float speed; public float distance; private bool movingRight = true; public Transform groundDetection; ... Add solution