Quantcast
Channel: Latest Questions by Neil Smith
Browsing latest articles
Browse All 10 View Live

How to move a camera only using the arrow keys?

I'm new to Unity and want to simply move a camera around a static scene using the arrows keys on your keyboard. How do I go about this?

View Article


Resizing / Rescaling Image inside GUI.Window content.

I am trying to rescale an image within the content of a GUI.Window. The code comes up with an error "Assets/TextAreaBox.js(14,43): BCE0051: Operator '*' cannot be used with a left hand side of type...

View Article


Scaling / Resizing an Image (Texture2D)

I am trying to scale an image to fit within GUILayer box. The script comes up with an error on the line with NewImageWidth_1 = image_1.width * ImageRatio; "BCE0051: Operator '*' cannot be used with a...

View Article

How to send a game object name to another script.

All I need to do is try and send a Game Object's name to another script. Script1.js static var CurrentObject = this.gameObject.name; Script2.js var getObjectName = Script1.CurrentObject;

View Article

How to calculate the surface area of a irregular polygon

I want to calculate the square area (surface area) of an irregular polygon created inside Unity which is within 3d space. The polygon will have various points around its border with x,y,z world...

View Article

Browsing latest articles
Browse All 10 View Live


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