Quantcast
Channel: Answers by "GC1983"
Browsing latest articles
Browse All 88 View Live

Answer by GC1983

You mean Java the web programming language that is used to help run webpages? If so, no. It has nothing to do with Unity. You should have Java installed anyway on your computer to help run certain...

View Article



Answer by GC1983

Actually, if you want to enable/disable the actual box mesh collider object, you can use: GameObject.collider.enabled = true/false;

View Article

Answer by GC1983

At the beginning of your if(Input.GetButton("q") you have two {.

View Article

Answer by GC1983

I found another similar link that seemed to have worked. Not sure what it is, but check it out. This one will let me push the object in the direction I please with the control of the wave....

View Article

Answer by GC1983

Change the shader of the mesh to ones that are effected by light. Ones like defuse, vertexlit, and specular will work. Then you can alter their color to make them appear more shaded.

View Article


Answer by GC1983

You can manually add all the cards as a preset like so: var cardObjects : GameObject[]; The array will appear in your inspector where you can place the cards into it. Hope this is what youre looking for.

View Article

Answer by GC1983

Final answer: public GameObject[] shipSpawnPoints; Vector3 startPosition; void Awake() { shipSpawnPoints = GameObject.FindGameObjectsWithTag("SpawnPoint"); startPosition =...

View Article

Answer by GC1983

Same script. Just begin with the Start(). With this, it will initialize just once and use the assigned objects when you execute your Update(). var bulletPrefab:Transform; var spawnUpObject :...

View Article


Answer by GC1983

Hmm, you could place a timer in there. Call the boolean when collision is made, and then let the timer run out. Make the timer variable public so you can set for how long you want it to shake. For...

View Article


Answer by GC1983

public float speed; public CharacterController charController; void Update() { var moveDirection = new Vector3(Input.GetAxis("Horizontal"), 0, Input.GetAxis("Vertical"));...

View Article

Answer by GC1983

My advice is not to dig into programming trying to build an RPG. Start simple and small. Learn key points of aspects of programming. Learning JS/UnityScript is rather easy to handle IF you have a solid...

View Article

Answer by GC1983

Well, one issue is that youre declaring the function in JS and declaring the integer argument in C#. So, if youre using JS, set it up as (adj : int).

View Article

Answer by GC1983

I wonder if I can dance on water...maybe it should be frozen...

View Article


Answer by GC1983

So, the only thing thats breaking and destroying is the IceCube, right? Well, obviously you have destroyed the object you want to reference. doing gameObject.active = false also will turn off any...

View Article

Answer by GC1983

http://docs.unity3d.com/Documentation/ScriptReference/GUI.html This is a series of references that you can create a textbox, label, etc that will display pop up message. Or you could create the message...

View Article


Answer by GC1983

You cant place 3D objects in front of GUI. Its not designed to. GUI is built to be placed on the screen like you are looking through a window and all the 3D objects are the viewed on the other side of...

View Article

Answer by GC1983

Highlight the object you want to focus on and press the F key.

View Article


Answer by GC1983

You cant store an integer like that. You may want to try transform.position = new Vector3(0, 0.012f, 0);

View Article

Answer by GC1983

I dont believe so. Once you open the project in a new version of Unity it will convert to that version. I believe only if you have the pro license, then you can use backward compatibility.

View Article

Answer by GC1983

public GameObject bullet; public float fireRange; public float fireRate; public float bulletSpeed; void ShootGun() if(Time.time > nextFire) { nextFire = Time.time + fireRate; var clone =...

View Article

Answer by GC1983

function Awake() { Invoke( "DestroyNow", Random.Range(1, 10) ); }

View Article


Answer by GC1983

Oh wait, I think I know the issue...Youre using rigidbody transform.Translate(). That is a physics based movement and ignores collision. I would recommend using a Character Controller for your player...

View Article


Answer by GC1983

There could be a series of issues of why yours is not working...possibly due to alterations that you made that you might have not realized. Could be settings....either way. rotating on any axis is...

View Article

Answer by GC1983

There's this really cool concept that has made millions of dollars because it makes our lives easier to learn about how to do things...They call themselves "Google". Pretty smart bunch of bastards to...

View Article

Answer by GC1983

Well, you cant just say GameObject.Find....what are you looking for? You have to direct it to what object your are trying to find. Reference:...

View Article


Answer by GC1983

Though this question isnt relevant to understanding Unity better...Get Unity Pro and sign up to freelance gigs such as Elance.com.

View Article

Answer by GC1983

Question 1: Create an int count so it will up the count each time you walk over the collider. If the desired count is met, trigger the effect. Question 2: Im not sure what you mean by deleting all the...

View Article

Answer by GC1983

And people say my questions dont belong... This is a general question that belongs to the forums. UA is for technical questions about the engine and code.

View Article

Answer by GC1983

Negative. What you are doing is calling for the Renderer Object, not the material of that object. I figured it out. Here, for future reference. Thanks for the help anyway! public Material[] = mats;...

View Article


Browsing latest articles
Browse All 88 View Live




Latest Images