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

Answer by Graham Dunnett

`troop` is decremented down to zero, when your "End of the loop" is printed. This code is then executed every time `LateUpdate` is called.

View Article


Answer by Graham Dunnett

The suggestion I would make is to spend a little time reading documentation: http://docs.unity3d.com/ScriptReference/MovieTexture-loop.html I believe the change shown on this documentation page should...

View Article


Answer by Graham Dunnett

`Resources.Load()` only looks in the Assets/Resources folder. The docs: http://docs.unity3d.com/ScriptReference/Resources.html is pretty clear on this.

View Article

Answer by Graham Dunnett

Read up on what brackets `(`, `)` and braces `{`, `}` are for. Your `OnMouseExit` function is written badly.

View Article

Answer by Graham Dunnett

We are (slowly) updating them. Maybe use 4.x if you are having problems with 5.x. The lessons you learn will be useful for all Unity versions.

View Article


Answer by Graham Dunnett

Your line 27 is faulty. Looks like you want to check if one of two things are true. See: https://msdn.microsoft.com/en-us/library/5011f09h.aspx to learn more about `if` statements. Search for...

View Article

Answer by Graham Dunnett

The `Mesh` documentation tells you how you can create a new mesh. If you are changing the number of vertices, or how triangles are formed from the verts then you'll need to create a new one. If you...

View Article

Answer by Graham Dunnett

Reading the documentation is pretty helpful: http://docs.unity3d.com/ScriptReference/Application.LoadLevel.html

View Article


Answer by Graham Dunnett

http://docs.unity3d.com/ScriptReference/PlayerPrefs.html ???

View Article


Answer by Graham Dunnett

Just learn c#.

View Article

Answer by Graham Dunnett

Unity 4.x cannot read projects created with 5.x.

View Article

Answer by Graham Dunnett

I find the solution when I perform a search. http://unity3d.com/search?refinement=answers&gq=CS0116

View Article

Answer by Graham Dunnett

Different platforms apply different script requirements. WSA use .Net. Your line 79 uses a variable that isn't declared anywhere. Maybe start the line with the class.

View Article


Answer by Graham Dunnett

As you'll know, NullReferenceException means that you are accessing a variable that doesn't exist. Since in your case you are accessing an Array, I'd imagine that the array hasn't been created. So...

View Article

Answer by Graham Dunnett

Start by visiting the Learn section of the Unity website, and watch some tutorials.

View Article


Answer by Graham Dunnett

void Update() { if (playerScore>499) currentHealth = fullHealthAmount; }

View Article

Answer by Graham Dunnett

See: http://docs.unity3d.com/Manual/ControllingGameObjectsComponents.html

View Article


Answer by Graham Dunnett

Drop your key testing code inside a function called `Update()`.

View Article

Answer by Graham Dunnett

`Resources.Load` loads assets, it doesn't load Scripts.

View Article

Answer by Graham Dunnett

`transform.GetChild()` will let you get one of the children on the GameObject (Canvas in your case.) Once you have the transform, you can use it's `gameObject` member to get the GO, and then it's...

View Article
Browsing all 959 articles
Browse latest View live


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