Questions tagged [array]
The array tag has no summary.
12 questions
0
votes
1
answer
70
views
How to create array of Depthstencil2D from texture2Darray
I have already done someting like this for texturecube but here I don't understand what I'm doing wrong. I have the first chance exception error message.
Below how I proceed:
create a texture for ...
0
votes
1
answer
75
views
How do I create a backward selection code?
Here is the code for my forward selection:
...
1
vote
1
answer
998
views
Map arrays of game objects to values of an enum in Unity inspector
I want to have a serialized field with an array of game objects for each item in a global enum, like this:
public enum MyEnum
{
Item1,
Item2,
Item3
}
...
0
votes
1
answer
1k
views
How to create a 2d array in Unity using Visual Scripting?
Found some good tutorials on how to create 2-dimensional arrays in Unity:
https://owlcation.com/stem/Using-Single-and-Multi-Dimensional-Arrays-in-C-and-Unity3D
Anyone know if this is also supported in ...
0
votes
0
answers
1k
views
AsyncGPUReadback.RequestIntoNativeArray - owner has been invalidated
I have the following C# code in Unity version 2022.2.0a12:
...
0
votes
1
answer
651
views
Get index of chunk in flattened 2d array from world position
I have a world which is divided in chunks and saved in a flattened 2d array. The world is currently 80 units wide and high, and each chunk represent a 20x20 unit area.
This gives that in my flattened ...