Quantcast
Browsing latest articles
Browse All 31 View Live

How do I access secondary maps through c#

![Image][1] [1]: http://i.imgur.com/zW7crEx.png I have been trying to figure out how to access this second detail texture through c# since you access the normal one using...

View Article


Problems with removing a random from a list

I am trying to cycle through a list of enum variables and return a random one from it, then remove it from the list however some of them return index out of bounds and I can't get a workaround it can...

View Article


How to get a value and keep it updated

I'm trying to get the hunger value from anotherscript etc and it works, but as it is updated in its script, i can't update it in the current script, since the value is only called once I need some help...

View Article

Problems with the way my sprites look

I am using perlin noise to generate a map of a couple of sprite prefabs (32x32) pixels, which are all instantiated by a forloop in the start of the game, (200x200) of them. I get a really nice look,...

View Article

Using variables inside a GameObject[] array

Hello fellow programmers, I'm trying to use a class inside my GameObject[] array so I can access them in the inspector however, I'm not entirely sure how to do that, right now what I got is something...

View Article


Best way to make a big 2D map as smooth as possible?

Right now I have a huge 2D procedural tilemap, which is about 500x500 tiles. Although it is so inefficiently done, and I'm not sure how to go at this should I use object pooling or would that not be...

View Article

Best way to get 2D character to collide with a meshcollider?

As known MeshCollider cannot collide with 2D colliders. I'm trying to figure out a good way of checking if my 2D character collides with the meshcollider. What would be the best way to do this?...

View Article

Best way to optimize mesh updating through code?

I am generating a tilemap on a mesh by making new vertices, triangles and uv maps to a mesh. However I'd like to update the mesh whilst playing the game, like changing a tile texture for example. I...

View Article


Some extra features that might help moderators

Fellow mods, I was recently wondering why us moderators have limited utility in unity answers. For example we don't yet have the power to edit all questions in the moderation queue (only some that the...

View Article


Problem with array

I got this weird bug that is keeping me awake right now, and I can't seem to get it fixed, sometimes it displays all of them filled in, but sometimes it leaves gaps like you can see.. Here's the code:...

View Article

2D: Best way to group a type of tile based on their neighbors similar type?

Hello, I currently have a tilemap structure setup using a multi-dimensional array. TDTile[,] _tiles = new TDTile[50,50]; On this map I have a bunch of trees, and I wanna group them all by pairs of 4....

View Article

What's the easiest way to see if a sphere intersects with another using...

Hello, I am trying to create multiple clusters of objects in a sphere radius, however these clusters should not intersect with one another. Here is a visual of how it should be: ![alt text][1] [1]:...

View Article
Browsing latest articles
Browse All 31 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>