Questions tagged [array]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
25 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 ...
  • 101
0 votes
1 answer
282 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 ...
  • 227
1 vote
1 answer
242 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 ...
0 votes
0 answers
151 views

AsyncGPUReadback.RequestIntoNativeArray - owner has been invalidated

I have the following C# code in Unity version 2022.2.0a12: ...
0 votes
1 answer
80 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 ...
  • 3
0 votes
1 answer
71 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 ...
0 votes
1 answer
53 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 ...
  • 1,986