Search Unity

ABOUT ANIMATION CAMERA

Discussion in 'Scripting' started by zhuangfengzi, Feb 7, 2010.

  1. zhuangfengzi

    zhuangfengzi

    Joined:
    Feb 7, 2010
    Posts:
    11
    Ask a few questions:
    1.I did 10 animation cameras with the splingcontroll.js, and did a button, I controled these animation cameras with this button now, the animation wants to in order broadcast, how should do???

    2.how to hide or show GUI Texture(objevt)?

    Thank first!


    :roll: :roll: :roll: :roll: :roll: :roll:
     
  2. andeeeee

    andeeeee

    Joined:
    Jul 19, 2005
    Posts:
    8,768
    Hi, welcome to the forum!

    I'm afraid I don't understand what you mean here. Can you give a bit more explanation?

    You can set the active field of the GameObject to false to hide the GUITexture and back to true to show it:-
    Code (csharp):
    1. guiTextureObject.gameObject.active = false;   // Hide the GUITexture.
     
  3. zhuangfengzi

    zhuangfengzi

    Joined:
    Feb 7, 2010
    Posts:
    11
    Thank you to answer my question!
    My problem is such, suppose I did 10 path animations in the max object(or did to do 10 path animations in the unity3d), import to an u3d, did a button in the u3d in the meantime, my purpose presses this 10 path animations certain sequence to play, and is be subjected to this button controls.While clicking this to press button, these animation auto in proper order play.If again click a button, the animation will automatically arrive a beginning.Don't know if you understand.Be the slice a little bit being like cutscene, but being not beginning to play head.

    Expect you of reply!