Answer by m4s4m0r1
hei, you are looks like a beginner. you must add some texture to your terrain. after that you can add Directional light/Point light, so your terrain is not "blank". if you want to see your FPC just...
View ArticleAnswer by m4s4m0r1
Impossible... Because OnTriggerEnter and Update is a different function. So, the function cannot be called in another function. If you want to do that you can make a variable to solve that For Example...
View ArticleAnswer by m4s4m0r1
maybe you can adjust you GUI Depth. for more information, you can see in this site [http://docs.unity3d.com/Documentation/ScriptReference/GUI-depth.html][1] [1]:...
View ArticleAnswer by m4s4m0r1
Create new Camera and Set this Script to your new Camera var target : Transform; var distance : float; var height : float; var damping :float; var rotDamp : float; function LateUpdate () { var...
View ArticleAnswer by m4s4m0r1
you can use `Vector3.Distance` maybe something like this (i use javascript for this script) var Plant :Transform; var maxDamage :float; var health :float = 100; private var realDamage :float; function...
View ArticleAnswer by m4s4m0r1
i have a same problem with you. and now my problem is solved. And guess what, the problem is my harddrive free space (in C:) below 20 GB... so the monodevelop and example project won`t come... maybe it...
View ArticleAnswer by m4s4m0r1
actually, i tried another function like OnTriggerEnter, OnCollisionEnter, and its still work. The Frequently problem is the collider must have a rigidbody or one of the collider must have a rigidbody...
View ArticleAnswer by m4s4m0r1
try `Input.GetAxis()` maybe it can help you... check for more information [http://docs.unity3d.com/Documentation/ScriptReference/Input.GetAxis.html][1] [1]:...
View ArticleAnswer by m4s4m0r1
try to turn off your antivirus... maybe its blocked by your antivirus
View ArticleAnswer by m4s4m0r1
i think you can use yeild WaitForSeconds maybe like this : function OnTriggerEnter (other : Collider) { if (other.CompareTag ("Player")) { theGuiObject.enabled = true; WaitToDisappear(); } } function...
View ArticleAnswer by m4s4m0r1
its simple, You destroy itself ,,, if that script is attached to your Character,it will Dsetroy The whole Object,,, So, before yield work, You destroy the Whole Script. However, you can make a "Spawn...
View ArticleAnswer by m4s4m0r1
you can use OnTriggerEnter for this, Example: function OnTriggerEnter (obj : Collider) { if(obj.gameObject.tag == "Your Tag") { transform.parent = obj.gameObject.transform; } }
View ArticleAnswer by m4s4m0r1
Hmmm, just give a simple Magic for this :), just delete ` if(debrisPrefab){}` than edit this : Instantiate(debrisPrefab, transform.position, transform.rotation); you can read that like this :...
View ArticleAnswer by m4s4m0r1
simple, just make your prefab`s variable as public variable. for example: public var Enemy : GameObject; function MakeEnemy() { Instantiate(Enemy, transform.position, transform.rotation); }
View ArticleAnswer by m4s4m0r1
I think your Script is Ok, but i`ll tell you something: 1. The "Enemy" of Collision/Triggering is Speed, I think your bullet movement is too fast so the collider can`t check if the bullet is in the...
View ArticleAnswer by m4s4m0r1
Use OnTriggerEnter function... you must get script like this var player = GameObject; function OnTriggerEnter() {Destroy(player);} set your Collider as a Trigger (you can see in inspector panel)
View ArticleAnswer by m4s4m0r1
its impossible to do that,,, in Unity, if you make a single terrain, you just can set up a resolution in that terrain. so, it means you must replace detail texture and tree position. if you still want...
View ArticleAnswer by m4s4m0r1
use your scripting skill... that's all you can do. because with unity script, you can do all you need in Unity.
View ArticleAnswer by m4s4m0r1
its impossible to do that,,, in Unity, if you make a single terrain, you just can set up a resolution in that terrain. so, it means you must replace detail texture and tree position. if you still want...
View ArticleAnswer by m4s4m0r1
use your scripting skill... that's all you can do. because with unity script, you can do all you need in Unity.
View Article
More Pages to Explore .....