Quantcast
Channel: Answers by "TobiasP"
Browsing all 72 articles
Browse latest View live
↧

Answer by TobiasP

Spawn an Empty GameObject, place it where you want your object to go, then child your object to the Empty GameObjecy. (I had this issue too but I was using a collectable and manually placing it!) Hope...

View Article


Answer by TobiasP

It should ignore collision between those two objects if specific conditions are met (look at link). [Reference][1] [1]: http://docs.unity3d.com/Documentation/ScriptReference/Physics.IgnoreCollision.html

View Article


Answer by TobiasP

There are multiple ways! GameObject.FindGameObjectWithTag(); GameObject.FindGameObjectOfType<>(); Resources.Load(); The third one you need to make a folder called "Resources". Say you have a...

View Article

Answer by TobiasP

Uncheck 3D sound in the sound's options! ![alt text][1] Hope this helps =] [1]: http://i.imgur.com/rB3Rdlu.png

View Article

Answer by TobiasP

I had the exact idea a year or so ago and made a quick prototype. I didn't have enough skill back then to finish my idea, and it has a few glitches, but maybe you can do more with it then me! (It uses...

View Article


Answer by TobiasP

private bool eventHappened; void Update() { if(eventHappened) { eventHappened = false; StartCoroutine(Lerp()); } } private IEnumerator Lerp() { while(true) { this.transform.position =...

View Article

Answer by TobiasP

I would just make a script called GameData and put it on the camera. Then any script that needs it can access it: void Start() { playerName = Camera.main.getComponent().playerName; }

View Article

Answer by TobiasP

Hey again! There are several ways. I usually use MoveTowards. This doesn't have slowing down near the end and you can pretty much compare the positions. if (theObject.transform.position == end) If you...

View Article


Answer by TobiasP

There are multiple ways to do this. Just go to this page: [Unity Doc][1] and hit CTRL + F and type in "Find". All of these methods will find a gameobject based on a string. Then you just use...

View Article


Answer by TobiasP

if (Input.GetKey("space")) { Jump(); } Of course, in the Jump function, check if their grounded. If they are, jump! Once their grounded again, allow them to jump again unless this is a jetpack where...

View Article

Answer by TobiasP

**Future Readers:** I got the answer from the helpful people over at [Rotorz][1] Tile System! (which, btw, you should check out! Their system is simply amazing!) **The Issue:** Multiple scales will...

View Article

Answer by TobiasP

[Answer][1] [1]: http://forum.unity3d.com/threads/238430-SetCurve-and-boolean-operations

View Article
Browsing all 72 articles
Browse latest View live


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