Questions tagged [array]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
51 views

How do I create a backward selection code?

Here is the code for my forward selection: ...
Lucy Adegbayibi's user avatar
0 votes
1 answer
310 views

How to assign a Resource Array to a variable in Godot 4?

In Godot 3, you could do this: export var (Array, Resource) test_variable I tried to recreate this in Godot 4, but I could not figure out how. This is what I tried:...
TheJalfireKnight's user avatar
1 vote
1 answer
594 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 } ...
Felox's user avatar
  • 67
0 votes
1 answer
220 views

How to pass voxel data to shader?

I am working on a voxel game, and I approached the point where I need to add day/night in my world. Apparently, I should just be able to pass the torch and sunlight values into my shader and multiply ...
X Builder's user avatar
  • 101
0 votes
1 answer
980 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 ...
kanamekun's user avatar
  • 369
1 vote
1 answer
1k views

Passing a string as argument to Unity Job System

I have a Job that needs to take some string from main thread and use it locally. Considering that the Job System cannot directly accept the string as an argument, is there any workaround to circumvent ...
Corvus Ultima's user avatar
0 votes
0 answers
746 views

AsyncGPUReadback.RequestIntoNativeArray - owner has been invalidated

I have the following C# code in Unity version 2022.2.0a12: ...
Corvus Ultima's user avatar
0 votes
1 answer
255 views

Attach images via script into array unity

I have 3 objects of Image type in game scene. So I need to attach this 3 objects via script into Image array inside of this ...
Silz's user avatar
  • 37
0 votes
1 answer
286 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 ...
CitiZen's user avatar
0 votes
1 answer
171 views

How do I offset a texture pointer in order to store an array of D3D11_SUBRESOURCE_DATA?

I'm attempting to load a sequence of frames from a GIF into a Texture2DArray using stbi_load_gif_from_memory which returns a ...
Casey's user avatar
  • 2,000