Quantcast
Channel: Answers by "iggy"
Browsing latest articles
Browse All 47 View Live

Answer by iggy

you can download Terrain Assets here for free: http://unity3d.com/support/resources/assets/terrain-assets and if i remember correctly, island demo doesn't come with Unity 3.3 you can download it here...

View Article



Answer by iggy

just type this: debug.log(transform.eulerAngles.y); more info on: http://unity3d.com/support/documentation/ScriptReference/Transform-eulerAngles.html

View Article

Answer by iggy

you could find a nearest planet by searching for smallest distance between planets and player. C# code GameObject nearestPlanet; float nearestDistance=float.MaxValue; float distance; foreach(GameObject...

View Article

Answer by iggy

var c : CharacterController; c = GetComponent(CharacterController); c.detectCollisions = false; http://unity3d.com/support/documentation/ScriptReference/CharacterController-detectCollisions.html then...

View Article

Answer by iggy

That is what GUI.Box does. Use Label (it will show texture only): GUI.Label (Rect (0,0, size.x, size.y),progressBarEmpty); source: http://unity3d.com/support/documentation/ScriptReference/GUI.Label.html

View Article


Answer by iggy

only this line is wierd for me. randomplacard = Mathf.Floor((Random.value) * everything[DifficultyLevel].length); Random.value is "1" inclusive. so if you get 1 "randomplacard" will be set to the...

View Article

Answer by iggy

here are some examples how other guys did it in Unity Community: (shader version works with free unity) http://www.unifycommunity.com/wiki/index.php?title=BarycentricWireframeUv1 (GL version pro only)...

View Article

Answer by iggy

i can't provide any help with code because i am in a same mess like you. although i found this to be so helpful, its a free Visual Shader Editor for Unity....

View Article


Answer by iggy

maybe this helps ![alt text][1] [1]: http://uploadpic.org/storage/2011/jGBNqcaxITC8uRT2XKcpqNjbL.png

View Article


Answer by iggy

var meshChildren : MeshRenderer[]; meshChildren = gameObject.GetComponentsInChildren.(); for (var mesh : MeshRenderer in meshChildren) { if(mesh.gameObject!=gameObject) mesh.enabled = false; } source:...

View Article

Answer by iggy

Well the easiest way i can think of if you set your important rigidbodies to "Collision Detection -> Continuous"> **Continuous**>> Use Discrete collision detection> against dynamic...

View Article

Answer by iggy

**GetComponentsInChildren(Renderer)** returns Component[]**GetComponentsInChildren. ()** //without spaces, i had to enter spaces because of this HTML text decoder returns Renderer[]

View Article

Answer by iggy

you need to change to: static var enemy = 5; and then you can access it from any enemy. and just add in the OnEnemyDeath() enemy--; if(enemy==0) Application.LoadLevel("level 2");

View Article


Answer by iggy

// make the object invisible! renderer.enabled = false; source: http://unity3d.com/support/documentation/ScriptReference/Renderer.html

View Article

Answer by iggy

you need to add Rigidbody Component also. http://unity3d.com/support/documentation/Components/class-Rigidbody.html

View Article


Answer by iggy

print ("Starting " + Time.time); // Start function WaitAndPrint as a coroutine yield WaitAndPrint(); print ("Done " + Time.time); function WaitAndPrint () { // suspend execution for 5 seconds yield...

View Article

Answer by iggy

http://www.marketwire.com/press-release/unity-technologies-surpasses-500k-developers-milestone-60m-installs-unity-browser-plugin-1518423.htm Unity Technologies Surpasses 500K Developers Milestone and...

View Article


Image may be NSFW.
Clik here to view.

Answer by iggy

image uploading via this QATO editor never worked for me. i use http://imgur.com/ and it works fine. just be sure to copy-paste an "HTML image" or just direct link to image. for example this code shows...

View Article

Answer by iggy

here are all the methods for ArrayList. http://msdn.microsoft.com/en-us/library/system.collections.arraylist_methods(v=VS.85).aspx i don't think there is one you seek. why don't you add in your WHILE...

View Article

Answer by iggy

there is already a function for that. you can use it like this: return Physics.Linecast(point1.position, point2.position); or read more here:...

View Article

Answer by iggy

function Start () { // Create a new texture and assign it to the renderer's material var texture = new Texture2D(128, 128); renderer.material.mainTexture = texture; // Fill the texture with white...

View Article


Answer by iggy

getting that random number is like this: x=Random.Range(-4, 4); http://unity3d.com/support/documentation/ScriptReference/Random.Range.html but if you want sphere to move from 4 to -4 in ping pong...

View Article

Browsing latest articles
Browse All 47 View Live




Latest Images