What do you want to save?
Add Code snippet
New code examples
-
C# 2021-09-04 06:53:02
csvwriter write header with space C#
void Main() { using (var stream = new MemoryStream()) using (var writer = new StreamWriter(stream)) using (var reader = new StreamReader(stream)) using (var csv = new CsvWriter(writer)) { var records = new List<Person> ... Add solution -
C# 2021-08-31 16:50:02
simple enemy spawning Unity
using System.Collections; using System.Collections.Generic; using UnityEngine; public class GameManagerScript : MonoBehaviour { //This variables will be used to make the limits of the spawn area public Vector2 EnemyAreaLimitUpLeft; public Vec... Add solution -
C# 2021-08-31 14:28:01
unity mobile controls
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Movement : MonoBehaviour { //variables public float moveSpeed = 300; public GameObject character; private Rigidbody2D characterBody; private float ScreenWid... Add solution -
C# 2021-08-31 01:44:01
how to make a camera follow an object in unity 2d
using System.Collections; using System.Collections.Generic; using UnityEngine; public class CameraController : MonoBehaviour { //Object you want to follow public Transform target; //Set to z -10 public Vector3 offset; //How ... Add solution -
C# 2021-08-30 07:37:01
set player position unity
transform.position = new Vector3(0, 0, 0);//x, y, z Add solution -
C# 2021-08-29 09:49:02
how to offset vector 3 by an angle unity
//Setting up Vector3's for rays Vector3 rayPosition = new Vector3(transform.position.x, headHeight, transform.position.z); Vector3 leftRayRotation = Quaternion.AngleAxis(-fovAngle, transform.up) * transform.forward; Vector3 rightRayRotation = Quaternion.... Add solution -
Other 2021-08-27 21:16:02
error aesthetics must be either length 1 or the same as the data (3) fill
library("ggplot2") ggplot(data = warpbreaks, aes(x = wool, y = breaks)) + geom_boxplot( notch = T, fill = c("blue", "red", "green3", "hotpink2"), outlier.color = NULL ) + theme(legend.po... Add solution -
Other 2021-08-27 16:46:01
parallax infinite background
using UnityEngine; public class Parallex : MonoBehaviour { private float length, startPos; public GameObject cam; public float parallexEffect; void Start () { startPos = transform.position.x; length = GetComponent<SpriteRenderer>().bounds... Add solution