About 13,500,000 results
Open links in new tab
  1. Unity - Scripting API: Array

    Arrays allow you to store multiple objects in a single variable. The Array class is only available in Javascript. There are two types of arrays in Unity, builtin arrays and normal Javascript Arrays. …

  2. How to use Arrays in Unity - Game Dev Beginner

    Dec 16, 2022 · Learn how Arrays work in Unity, why they're useful and how to make arrays with your own custom data types, in my in-depth beginner's guide.

  3. How to pass ArrayList from Java to Unity C#

    Dec 9, 2020 · The easiest solution may be to call ToArray on the ArrayList on the java side which will create a Java native array of the elements. With this it should be possible to use …

  4. Declaring Arrays In Unity - Medium

    Jun 16, 2023 · Creating an array and placing elements/variables in it is far more efficient. There’s 3 ways to create an array. Write the code below and then change the number of elements in …

  5. Arrays declaration c# - Questions & Answers - Unity Discussions

    Jan 25, 2012 · There are several ways to declare arrays: int [] arr1 = new int [3]; // Create an integer array with 3 elements var arr2 = new int [3]; // Same thing, just with implicit declaration …

  6. How to use Arrays in Unity C# - VionixStudio

    Jul 5, 2023 · Arrays, allow you to group similar values into a single variable name and access them using index. In this tutorial, we will learn how to use arrays inside Unity with code examples.

  7. Defining an array list in c# unity. - Stack Overflow

    Alternatively, you can ditch ArrayList and use the more modern List<> type. You need to add using System.Collections.Generic to the top, then your code will be like: numbers[4] = dice5; …

  8. c# instantiate array with values - Unity Discussions

    Nov 29, 2012 · is it possible to create and array and populate values? I’m just getting into unity and c# coming from a flash/AS3 background. in AS3 it is possible to do the following var …

  9. C# Arrays And Lists in Unity - YouTube

    This video explains how to create Arrays and Lists in your custom C# scripts within Unity in order to manage groups of components or objects of the same type.

  10. How to use arrays, lists, and dictionaries in Unity for 3D game …

    May 16, 2018 · A key ingredient in scripting 3D games with Unity is the ability to work with C# to create arrays, lists, objects and dictionaries within the Unity platform. In this tutorial, we help …

Refresh