I am brand new to the Unity engine and really loving it. I make websites for companies and am using the Unity web player to allow surfers to navigate a 3D menu of sorts.
The player is inserted in to an HTML page with two iFrames on the same page. I would like to have a surfer “click on” some element in the 3D world and have one of those frames update.
Yet, I am not able to find a ‘click on object’ script approach. Has anyone done this? Or might know where in the documentation I might find samples if it can be done? If not, I am thinking this might be done through collision with objects as well. But, I need some help in learning how Unity initiates actions like:
Very simple. Normally when you make a new script it starts like so…
function Update () {
// stuff happens
}
The “Update” function is called every update, so anything you put in such a script would occur at every screen refresh. If you instead want the code to only trigger on a mouse click you’d use…
Excellent. I will read up on all these scripts and see what serves the purpose.
I must say, as a new user of this engine, I am highly impressed! Not only by the tool itself. But, by the community around it. You are all so helpful and professional. I am going to buy my license this week. I want to be a part of this community