Answers for "unity c# 2d array"

C#
1

2d ray unity

RaycastHit2D hit = Physics2D.Raycast(transform.position, -Vector2.up);
Posted by: Guest on February-15-2021
3

C# public 2d array

// in namespace, above main form declaration

public class Globals
    {
        public static string[,] tableArray;
	}

//... in main or other method

Globals.tableArray = new string[rowLength,colLength];
Posted by: Guest on March-18-2020

C# Answers by Framework

Browse Popular Code Answers by Language