Answer by Graham Dunnett
`RigidBody.mass` is not a Component. `RigidBody` is. So you need to do: var myRigidBody : RigidBody = GetComponent(Rigidbody); However, that's totally unnecessary. All game objects have a member called...
View ArticleAnswer by Graham Dunnett
http://forum.unity3d.com/threads/192146-Unity-4-2-Multiple-Materials-draw-order
View ArticleAnswer by Graham Dunnett
@Alone1992 - we're all caught up in politics, unfortunately. There is a trade embargo preventing sales to Iran. Unity is unable to sell products to a number of countries, and Iran is one of them. I'd...
View ArticleAnswer by Graham Dunnett
This is how I'd do it. I think your variable called `currentFrame` is actually the position in the X axis. public float framesX = 6; public float framesY = 6; private float currentX = 0; private float...
View ArticleAnswer by Graham Dunnett
Select an object in the hierarchy view. Then move the mouse pointer into the scene view. Finally press the 'f' key.
View ArticleAnswer by Graham Dunnett
You view UnityWeb files (those that have the `.unity3d` extension) using the Unity webplayer browser plugin. If you don't own the `.unity3d` file then you have a lot of work to do setting up an html...
View ArticleAnswer by Graham Dunnett
Check the docs for the `Mesh` class: http://docs.unity3d.com/Documentation/ScriptReference/Mesh.html.
View ArticleAnswer by Graham Dunnett
Fatal content errors usually mean a file that Unity is reading is corrupt. Check that the files in the Data folder are all the correct size.
View ArticleAnswer by Graham Dunnett
Let me try to explain:> non static member 'GetComponent' This tells you that GetComponent is not static. In case you forget, a static function belongs the the class it is a member of. All objects...
View ArticleAnswer by Graham Dunnett
So, things you need to know: 1. You'll probably want to run your code on PC/Mac/Editor as well as on a touch device, so, you'll want to learn how to check what machine you are running on, and use the...
View ArticleAnswer by Graham Dunnett
1. Visit: http://docs.unity3d.com/412/Documentation/ScriptReference/MonoCompatibility.html 2. Wait for the page to load. It's very very very long. 3. Search for "Class: Process" 4. Observe a list of...
View ArticleAnswer by Graham Dunnett
I don't know what format Google Warehouse models are in, but if it's a format that Unity can import, then yes, you can use them in Unity. Any assets or scripts that you find online are created by...
View ArticleAnswer by Graham Dunnett
Unitron is not compatible with more recent versions of Mac OS. What I do is View->Show Documents List, which shows a list of all open documents, then double-click the script name in the list. This...
View ArticleAnswer by Graham Dunnett
http://forum.unity3d.com/threads/192189-Unity3d-4-2-Invalid-Characters-in-Path
View ArticleAnswer by Graham Dunnett
Assume it was intended to be: http://en.wikipedia.org/wiki/Sphere_mapping
View ArticleAnswer by Graham Dunnett
http://docs.unity3d.com/Documentation/Manual/windowsstore-gettingstarted.html "Unity will support three Windows Store targets X86, X64 and ARM." What happens when you switch to the Windows Store...
View ArticleAnswer by Graham Dunnett
When you make a standalone the contents of `Assets\Resources` are compressed into a data file. You access the contents of this file at runtime using `Resources.Load()`. On iOS all your script code and...
View ArticleAnswer by Graham Dunnett
Nope. GIF is a source format, it's not something GPUs understand. Render the GIF images out into a texture, and then use texture animation.
View ArticleAnswer by Graham Dunnett
You serious? http://docs.unity3d.com/Documentation/Manual/PublishingBuilds.html Untick "Development build".
View Article