Search Unity

I can only change Rect Transform's Z Position?

Discussion in 'Animation' started by SomeJDude, May 25, 2015.

  1. SomeJDude

    SomeJDude

    Joined:
    Feb 13, 2015
    Posts:
    10
    I want to create an animation that will change an image's position along the X axis, but when I went to Add Property, only the Z Position is available. What gives?

    upload_2015-5-25_16-12-54.png

    upload_2015-5-25_16-13-14.png
     
  2. theANMATOR2b

    theANMATOR2b

    Joined:
    Jul 12, 2014
    Posts:
    7,790
    Is it parented to another object?
     
  3. TrickyHandz

    TrickyHandz

    Joined:
    Jul 23, 2010
    Posts:
    196
    For a Rect Transform, you will be manipulating the "Anchored Position" property. From within that property you can manipulate both the "Anchored Position.x" and "Anchored Position.y" value. This is because UI objects are position relative to the borders of the Canvas object. Hope that helps you out.
     
  4. jerry2157

    jerry2157

    Joined:
    Mar 23, 2014
    Posts:
    17
    Instead of modificating the property in the Animation window, modify it in the scene window, and as it said it TrickyHandz for a Rect Transform is manipulated by the 'Anchored Position'.
     
  5. John0081

    John0081

    Joined:
    Dec 30, 2015
    Posts:
    1
    Wonderful Ideas. Useful scree shorts Thanks..
     
  6. tbelgrave

    tbelgrave

    Joined:
    Jul 29, 2006
    Posts:
    321
    Cheers! Thought I did something wrong :D