Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Unity is a cross-platform game creation system that focuses on easy art pipeline process. It consists of a game engine and an integrated development environment. The game engine's scripting is built on Mono.
4
votes
1
answer
649
views
How to detect if instantiated prefab can be placed at current location or not
I'm using Unity 5.5.0f3 with C#.
My prefab(wooden fence) is instantiated at my mouse location when I click a UI button and follows my mouse until I click somewhere in the scene to place it. …
3
votes
1
answer
4k
views
how to achieve smooth 360 Degree input with joystick as opposed to 8 angles
I have been trying to figure out how to implement controller input in my unity project. …
1
vote
3
answers
872
views
Having trouble with foreach loop affecting anything past the first object found
I have been trying to disable isTrigger in unity c# script on all GameObjects containing a certain tag. … I have searched for hours and watched videos/looked at unity docs on foreach statements with no luck to my issue. …
1
vote
2
answers
5k
views
How to SetActive or enable a Canvas attached to prefabs that get instantiated (tower defense...
I am back again after making much progress in quest for unity and c# knowledge. I have become stumped yet again by how to enable a canvas that is attached to my prefab. … Here is the situation:
I am using C# on unity 5.5.0f3.
I have UI buttons that instantiate a defense based on a prefab. …
0
votes
Accepted
Having trouble with foreach loop affecting anything past the first object found
Well, I found the Answer. Not sure how good this is for performance or if it is advised against, but it is working for me!
I had to put the line
defenseTriggers = GameObject.FindGameObjectsWithTag …