Author Topic: Unified anchor with respect to UI Root in a gameObject within a prefab  (Read 1204 times)

Tatanan

  • Jr. Member
  • **
  • Thank You
  • -Given: 11
  • -Receive: 0
  • Posts: 81
    • View Profile
    • Casual Arena
Just that.
Is is possible?
I'm seeing that, when I save a prefab, those anchors with respect to UI Root don't appears on other instances of this prefab.
Game developer on Casual Arena.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Unified anchor with respect to UI Root in a gameObject within a prefab
« Reply #1 on: October 14, 2014, 03:02:09 PM »
Have a UIWidget on your prefab object, and anchor everything underneath that prefab to this root widget instead of the screen. When you instantiate the prefab, also set its widget's anchor to UICamera.list[0].camera.transform.