Answer by Graham Dunnett
Webplayer 4.6 hasn't been shipped yet. The only way to get 4.6 web player is to install the 4.6 Unity editor. If a user has published a game built with 4.6, then they haven't stopped to realise that...
View ArticleAnswer by Graham Dunnett
`EditorApplication` is documented as an Editor-only class. #pragma strict import UnityEditor; @MenuItem ("Example/example") static function SaveTempScene() { var path : String =...
View ArticleAnswer by Graham Dunnett
`Input.GetButtonDown()` tells you when a button is first pressed. So, use a variable to store the current time, from `Time.time`. `Input.GetButton()` will tell you when that button is held down. So,...
View ArticleAnswer by Graham Dunnett
Use angles. You can use the position of the dot relative to the centre to know which quadrant the dot is in. Then arcsin/cos can give you the angle. Then look to see how yellow angle compares to blue...
View ArticleAnswer by Graham Dunnett
"All compiler errors have to be fixed before you can enter playmode" means your scripts have problems. The console will report what the error is, including the name of the script with the problem, and...
View ArticleAnswer by Graham Dunnett
http://unity3d.com/learn/tutorials/modules/beginner/animation/animator-scripting
View ArticleAnswer by Graham Dunnett
You only need to worry about this kind of thing when the profiler tells you that your OnGUI function is consuming the most amount of time. It's unlikely to be the case.
View ArticleAnswer by Graham Dunnett
If the `url` you are trying to access differs from the url where your game is hosted, you'll need cross-origin resource sharing. Maybe read-up on this here:...
View ArticleAnswer by Graham Dunnett
http://docs.unity3d.com/Manual/SceneViewNavigation.html "The Flythrough mode lets you navigate the Scene View by flying around in first person similar to how you would navigate in many games. - Click...
View ArticleAnswer by Graham Dunnett
`Slerp()` needs two quaternions. Commonly these are picked up from targets, exactly like you see in the code. If you don't want these targets, but have hard-coded quaternions (and vectors for `Lerp()`)...
View ArticleAnswer by Graham Dunnett
Include `Face1.png` into a `Resources` folder in the Assets folder. That texture will then be included into the resources asset, with can then be read using `Resources.Load()`.
View ArticleAnswer by Graham Dunnett
The initial value in the variables is read and stored by the Inspector. By default it's the value in the inspector that is used to initialise the variable. To ask the inspector to go back to the script...
View ArticleAnswer by Graham Dunnett
Shut down Unity. Then find a .cs file in Explorer. Double-click it, and I think Windows won't know what to use to open it. Tell Windows to open the script file with MonoDevelop.
View ArticleAnswer by Graham Dunnett
Build a Unity standalone app, and launch it windowed. The About window will show you the attributions you need.
View ArticleAnswer by Graham Dunnett
Movie textures are decoded in software, with each decoded frame uploaded to the GPU as a texture. These decoded frames can obviously consume memory. Video players will upload the compressed frames to...
View ArticleAnswer by Graham Dunnett
The Galaxy S4 has a 1920x1080 screen resolution. That could easily be higher resolution than the game view window running in the editor.
View ArticleAnswer by Graham Dunnett
The code here: http://docs.unity3d.com/Manual/CustomizingtheUnityWebPlayerloadingscreen.html shows you how to edit the `params` variable. In your auto-generated script, that variable is set on line 22....
View ArticleAnswer by Graham Dunnett
When you publish from Unity for Android you'll get an APK. There is nothing else you need to do.
View Article