Quantcast
Browsing latest articles
Browse All 73 View Live

Finding objects in an arc/pie ?

Hello =) Im having trouble with my combat system , I made one simple before where it just casted a raycast and it worked , But now i noticed it was kinda buggy , and you could even hit yourself...

View Article


Path Finding With Different Elevations

So, given that i have that i have an enemy who is on a plat form 5 meters higher than the player, and has a ramp going down to player elevation... When i path find, how do i check to see if the drop...

View Article


Zombie A.I path finding help

HI, is there a way to make a zombie ai script ( Path finding ). I know that i'm asking for a lot, but if there are and tuts avialible please tell me about them. Also if u can tell me ho to get started...

View Article

how to do infinitive loop for finding all sub folders / files C#

ok I've managed to do a loop of 5 Subfolders and all files in them but I wander how do I create a loop that loops it self and knows he's own loop changes a bit each time it loops it self of it has...

View Article

A* pathfinding, Re checking nodes

At the moment, I am using the A* Pathing found [here][1] Now, perhaps I am going about this the wrong way, but I set up a new function for closed nodes. Maybe Invalid nodes are the same? I didn't think...

View Article


Can I find if a material is actually being used?

I have a material in my project named "No Name". Is there a way to find if this "No Name" material is actually being used?

View Article

Quadtree Neighbor Level Differences

I found a paper on a quad tree constant time neighbor found algorithm [here.][1] But iI figured that I only need one part of the algorithm, I don't actually need to find the neighbors, I just need the...

View Article

Can Someone Explain this Code to Me?

I came across some code that seems to be able to determine the neighbor quad tree nodes in a quad tree, however I don't get exactly what's going on in the code. I do know that it's in C++ so the syntax...

View Article


AI Waypoint - Take into account unit Size/Radius?

Hello, I'm messing around with different path finders/waypoints/navigation systems for my game. The ones I've used so far don't actually seem to take into account my units size/radius. So if there is a...

View Article


Finding a value in a List

I need to find a value in a List. This is an example code that shows what I would want to do. private List spaces; private gridSize = 2.5; public struct Space{ public Vector3 coor; public Vector3 pos;...

View Article

Instantiating a prefab that is in my project folder?

Dunno if this is a dumb question and am I missing something obvious.... So far in my limited work with UNI I declare a public GameObject in a c# script and drop into it a prefab (that I have created in...

View Article

Find position of a character of typogenic text

I need to find a way to pinpoint the position in the scene of a specified character (the last one of the string for example) in a typogenic text. For now I've tried to calculate it, but the result is...

View Article

Grid-based path-finding, similar to Legend of Grimrock/Eye of the Beholder...

I am working on an old-school grid-based first-person dungeon crawler and my prototype is almost complete. The only thing I have to work on is enemy path-finding. My enemy has a wander AI that is...

View Article


instance of prefab can't be found outside of Start() function

I am a beginner at coding. To clarify I am creating for instance a clone of BetButton. I only want the clone to be SetActive if Allowed.Contains has ("Bet") in it. My Betbutton and slider are both...

View Article

Find nearest enemy object in radius

Hi all, I am trying to create RTS. What is the best and less costly (**fps**) way to find nearest **UNITY** object (with tag "Enemy") **in some radius** . Physics.OverlapSphere, Circle Collider 2d or...

View Article


how do i find my answers

if i once asked a question, how can i find my question?

View Article

How to check what prefabs exist in one of the project folders? (not...

Hey all. Just as title says - I need to check what prefabs exist in specific project folder (e.g. "Assets/FunnyFolder/NotFunnyFolder/") I tried using AssetsDatabase and PrefabUtility, but I can't work...

View Article


How do I conditionally instantiate gameobject in a public class array?

i have a class called, [System.Serializable] public class EnemyInformation{ //inside are public variables like public int enemyID; public enemyName; } I created another script that inherits...

View Article

List.FindIndex

How works FindIndex? public class FRef : MonoBehaviour { string player_n; public List p = new List(); int idx; void Start() { idx = p.FindIndex(IsAlive); Debug.Log(p[idx].name); } bool IsAlive(Prop...

View Article

How can run method from unknown type of script?

Hi, i have many objects that most of them have a script with 'Events' suffix. example : gameObject : Door, script : DoorEvents then i find this script after triggering player with them: foreach...

View Article

Can someone plz tell me we're the old enemy models are like the ones in...

Other vids with this model are: My bad fps part 1 (by chromefxffilms) My bad fps part 2 (by chromefxffilms)

View Article


find a game object in a specific scene

i did check a similar titled topic but i am curious if there is any way for a script in a scene to find a specific game object in another scene and get a reference to it. assume for the moment we are...

View Article


Quickly find all particles on the scene without using GetComponent

I need to quickly find all particles on the scene without using GetComponent. Perhaps in the engine there is some pool of all existing particles at the moment to have direct access to them? Like...

View Article

How do I get closest particle?

Hello, I am currently working on a small project and I am currently stuck as I don't know how to find closest particle. The thing I want to achive here is that enemies will dodge the particles...

View Article

Issues with dropping an object on multiple objects separetly - Simple 2d Drag...

>Hello,>What I want to achieve is: Drag and Drop the circle in the Start Screenshot on the squares separetly, so you'd drag and drop it on any square, and that square will be destroied, then...

View Article


find object of with specific conditions

I'm trying to create a card based game and for UI purposes I have specific slots but I need the script to be able to tell which cards are available and for that I need it to only search for ones that...

View Article

Very basic optimisation question (Find)

Hi. I have a player with its references to its own components like collider/rb in a player.cs script. The thing is, referecing manually in the engine makes it look ugly, and I was wondering : Is...

View Article

Working with FindAssets filter.

Hi, i'm working on a unity tool and i need to find an asset named 'Settings.asset'. So I started trying to use FindAssets and I did this: AssetDatabase.FindAssets("Settings t:ScriptableObject") And at...

View Article

I can't find code that finds a TMP_Pro object by name, tag or whatever.

I'm trying to access a TMP_Pro text on the UI from a prefab that gets instantiated after the start of the game. This means that, in order to change the text of the TMP_Pro object, it needs to "find"...

View Article


Browsing latest articles
Browse All 73 View Live


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