About 113,000 results
Open links in new tab
  1. How to create multidimensional array in Unity Inspector?

    Mar 19, 2018 · Possible workarounds include implementing your 2D array as a jagged array (an array whose elements are arrays) or creating a wrapper class that is serializable itself. As endrik exe suggested, you'll also want to prompt Unity to save changes to your object using EditorUtility.SetDirty().

  2. Is there any way to view 2d arrays in the inspector? - Unity

    Mar 25, 2012 · to see 2d arrays in the inspector try this: var array2d : MyArray[]; class MyArray{ var myArray : float[]; }

  3. How to display a list of 2D arrays in the inspector

    Aug 24, 2015 · Unity doesn't display 2D array in the inspector. For this we need to add our own Editor script to make it appear in the inspector and make it editable . Fortunately there is already a tutorial available on how to achieve this functionality .

  4. Unity3D - 2D Array In Inspector - YouTube

    Jul 13, 2015 · This video shows how to display a custom 2D array in the inspector window in Unity3D.This tutorial also provides a solution to a question on the Unity's Q&A ...

  5. GitHub - Eldoir/Array2DEditor: Use 2-dimensional arrays in Unity

    Use this if you want to deal with 2D arrays easily within the inspector of Unity. For a quick import into an existing project, just get the UnityPackage. It also contains some examples. The Array2DEditor folder on this repo is an empty project with …

  6. c# - Show the array in the Inspector (Unity) - Stack Overflow

    May 1, 2018 · I have a list of arrays that I want to show in the inspector. This is my code: SerializedProperty ClipArray; ClipArray = serializedObject.FindProperty("ClipArray"); // public AudioClip[] ClipArray; serializedObject.Update(); EditorGUILayout.PropertyField(ClipArray); serializedObject.ApplyModifiedProperties();

  7. [Release] Serializable 2D Array, A Tool to help serialize and …

    Nov 16, 2024 · However C# 2D Array T[,] is not a serializable type and if you are using a long long list for alternative it is very hard to manage a long list. So this package is for helping you serialize and manage a 2D Array for your game project. Key Feature: Serializable class Array2D with 2D Array Visualizer T can be everything, it is Generics type.

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

    Dec 16, 2022 · Generally speaking, it’s not possible to display a 2D array or a nested array in the Inspector. However, there is a workaround that will allow you to view and edit the contents of nested collections manually.

  9. Serialize custom multidimensional array from Inspector - Unity

    Mar 27, 2018 · Unity couldn’t by default serialize 2 dimensional arrays. What you have to do is to create your own serializable data structure that represents a 2D array and show it on inspector like you did with your custom editor script.

  10. [FREE] Array2DEditor: A plugin to manage 2D arrays in the Inspector

    Jul 31, 2021 · Array2DEditor was primarily intended to read edit-time values, but I will add the possibility to edit the cells at runtime. Please keep in mind that every change you make at runtime on your Array2Ds will be reverted back when you stop playing!

Refresh