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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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