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.
0
votes
How to access UI elements in a canvas in UnityUI
There are multiple possibilities here.
You can use the static function GameObject.Find() to find a gameobject by
name in the entire scene. However, this function is a bit slow so try
to call it only …
0
votes
Wall checking not working correctly
Why are you casting the ray twice? First cast the ray:
RaycastHit2D hit = Physics2D.Raycast (wallCheck.position, Vector2.right, wallCheckDistance);
Then, verify if anything is hit:
if (hit.collide …
6
votes
Accepted
How to handle multiple enemies with the same script?
The start of your reasoning is good, but you get lost when trying to reduce the enemy HP. Let's restart from the Sword:
In your Sword script, you have a function OnTriggerEnter2D.
In this function, y …
3
votes
1
answer
4k
views
My player sprite get stuck to walls while moving along
I am not using any physics codes, I would just like to make it work with the built-in Unity physics. …
1
vote
Determine facing direction mecanim 2d movement
Add a Vector2 private variable to your class.
This variable will tells you at any time where your character is facing:
private Vector2 facingDirection = Vector2.zero;
...
void FixedUpdate () {
V …
1
vote
1
answer
2k
views
How to combine tiles in a procedurally generated level in 2D tile based maps?
I am developing a 2D tile-based top-down game. It is currently instantiating square objects with a sprite renderer to procedurally generate the map.
Each floor and wall is a 1-unit wide object.
I ha …