By jyen
on Wed, 01/16/2013 - 16:26
if (GUILayout.Button("Red")) { i do not know what to write here }
I imported 3D object called abc1 from Maya, by default is using lambert3 (blue color).
if i want to replace it with another 3D object called abc2, which is using lambert1 (red).
or is it possible to replace abc1 directly with lambert1? since already imported into unity3d as well even without import abc2.
i am doing for android + Augmented reality (vuforia) + unity3d.
thanks!
Hi, you can replace your 3D
Hi, you can replace your 3D model quite easily at runtime in Unity;
this is discussed for instance in this thread:
https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/replace-3d-model-runtime
thank you so much for your
thank you so much for your help =)
by the way, is it possible to display text when a virtual button is pressed??
i tried guiText but it is not working.
Hi, have you tried just using
Hi, have you tried just using GUI.Label() function, this is usually one of the simplest way to display text;
for instance, suppose you create a script and you attach it to your ARCamera (or to one of your ImageTargets), your script could include some code like the following:
erm. i mean I want to
erm. i mean I want to use Virtual Button to display text out?
i do not want it to show all the time, just when i press a virtual button, instead of changing material, i want it shows some text besides the object.. hehe
Yes, I understood that, but
Yes, I understood that, but what I mean is that you could create some code and have a boolean flag (e.g. call it "showText") when the virtual buttons get triggered, and then use GUI.Label() to show some text on the screen when such flag is true;
ahah~ i see. yes,
ahah~ i see. yes, successfully ^^ thank u so much for your help and being so kindly to explain to me
Glad to help.
Glad to help.