Quantcast
Channel: Answers by "Graham-Dunnett"
Browsing all 959 articles
Browse latest View live
↧

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 Article


Answer 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 Article


Answer 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 Article

Answer 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 Article

Answer 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 Article


Answer by Graham Dunnett

http://unity3d.com/learn/tutorials/modules/beginner/animation/animator-scripting

View Article

Answer 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 Article

Answer 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 Article


Answer 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 Article


Answer by Graham Dunnett

There's not a flag for this yet.

View Article

Answer 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 Article

Answer 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 Article

Answer 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 Article


Answer 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 Article

Answer by Graham Dunnett

Build a Unity standalone app, and launch it windowed. The About window will show you the attributions you need.

View Article


Answer 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 Article

Answer 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 Article


Answer 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 Article

Answer 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

Answer by Graham Dunnett

http://docs.unity3d.com/ScriptReference/AudioSource.Stop.html

View Article
Browsing all 959 articles
Browse latest View live


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