A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate in the Unity community.
Separate names with a comma.
good idea public Vector3Int GetCellPos(Vector3 _worldPos) { //transform.position is the offset of the entire grid object //Scale is the size...
oof hard coding cell size is crazy lol, but yeah i would have done the same thing a couple months ago, before diving into this project
offset as in, if the grid is positioned at world position (5.5,15.5) the first cell in the grid, aka cell 0,0 would be at world position 5.5,15.5...
yes thanks :p I actually took that advice and spent some time stepping through and found the issue, I also got out a paper and pen and physically...
yes sorry it is the position of the grid, aka the world offset. for some reason mathf.floortoint() was not operating as I thought, and was...
i hvae been at this for a while and I am quite tired so there might be an answer that I am not seeing, but how would I convert from world pos to...
lol yeah I'm working on some debugging rn i was just wondering if it was a built-in issue with unity or something i was doing wrong.
i have a procedural generator using system.random. it uses a seed and I want the same seed to produce the same level every single time, across...
I attached a video of the issue. [MEDIA] when adding elements to a larger array it seems the index doesn't appear until I either close and reopen...
I'm trying to get a ray cast to exit my camera at the position of my mouse to click things in the world, however, I have a pixel shader on the...
ah I see ty
ah my mistake, I did a quick lookup and found a couple results saying it used multiple atlases, probably should have checked the sources lol
im trying to generate a mesh with multiple cubes, like Minecraft, and I don't want to store every single texture in a single texture sheet for...
that makes a lot of sense lol, this will honestly be much easier than trying to have faces share verts ty
I'm trying to map textures to a custom cube one square texture that i want repeated on all faces. here's my UV cords [ATTACH] and here's how the...
probably, we were running into issues with bugs and stuff when doing polymorphism and trying to mesh it with monobehaviors. it is probably a lack...
yeah, a lot of the inheritance tho bugs out with unity mono behaviors, a couple of my friends were having a really hard time with inheritance and...
ah i see thankyou. iv noticed alot of weird interactions like that with regular c# and unity c#
I'm refactoring some of my code and figured there was a better way than making an if or statement for each variable in the chain and sure enough...
ty i will definitely check that