Quantcast
Channel: Answers by "thelackey3326"
Browsing all 30 articles
Browse latest View live
↧

Answer by thelackey3326

Expanding on what iwaldrop said: Lines 19 and 25 are where the problem lies. There it looks like you are trying to interpolate ("lerp") a rotation, which is a Quaternion. The error is that you are...

View Article


Answer by thelackey3326

A couple of things to check out [OnSceneGUI called without any object selected][1] [Drawing to the scene from an EditorWindow][2] [1]:...

View Article


Answer by thelackey3326

Camera.main will only return the *first* camera found called "MainCamera". If you have two Third Person Control scripts running, and two GameObjects tagged as MainCamera, then one of the scripts will...

View Article

Answer by thelackey3326

Yes, you're correct. *GameObject.Find()* will return the *first* match that it finds and then it will stop searching. Assuming that this script is attached to each enemy, then what you want to use is...

View Article

Answer by thelackey3326

In your Start, you should get all of the GameObjects that matter. You could tag them all with some specific tag like "Party" or something, then use *GameObject.FindGameObjectsWithTag("Party")* which...

View Article


Answer by thelackey3326

Found this forum thread: [http://forum.unity3d.com/threads/dont-have-possibility-to-fold-code-in-monodevelop.222058/][1] User *anlop* in thread comment #5 says that it may not work for JS, but for C#:...

View Article

Answer by thelackey3326

You'll want to use [TextAsset][1], which works like any other asset. You could assign it to a field on a script or load it from Resources (which is popular because it can be unloaded when you're done...

View Article

Answer by thelackey3326

Looks like there is a file called *version.txt* in the Library/UnityAssemblies folder. The very first line is the Unity version.

View Article


Answer by thelackey3326

If you have an array of items in the Inspector and want to delete an entry from the middle of the array, you can select the item (click on its name, it should turn blue) and then do a Shift-Delete. The...

View Article


Answer by thelackey3326

You can set a validation callback for the input field, and if the character is valid, return its uppercase form. http://docs.unity3d.com/ScriptReference/UI.InputField-onValidateInput.html

View Article
Browsing all 30 articles
Browse latest View live


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