Skip to main content

Questions tagged [array]

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

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 ...
philB's user avatar
  • 333
0 votes
2 answers
192 views

I'm trying to make a randomized generation engine for a top down dungeon crawler, in the Binding of Isaac style, however, the code is throwing out a multitude of errors when I try it compare a value ...
Thirstierpoet17's user avatar
0 votes
1 answer
76 views

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

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
1k views

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
  • 77
0 votes
1 answer
583 views

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 ...
Lightning323's user avatar
0 votes
1 answer
1k views

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
  • 379
1 vote
1 answer
2k views

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
1k views

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

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
654 views

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
368 views

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,095