Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - lataupe

Pages: [1]
1
NGUI 3 Support / Re: AnchorPoint targets not properly set in code?
« on: December 13, 2013, 11:28:29 AM »
perfect.Thank you very much.
What a proactive developer ;-)

2
NGUI 3 Support / Re: AnchorPoint targets not properly set in code?
« on: December 12, 2013, 11:55:27 AM »
Thank you for your reply. I'm doing this to "put" a sprite of any size in a cell so that it fills the whole cell. But if there is a better way to do this, I'd be glad to know it :-)

3
NGUI 3 Support / AnchorPoint targets not properly set in code?
« on: December 11, 2013, 12:42:17 PM »
Hi,

I have tried to change the target of all the anchorpoints of a sprite in code which happens on click.

  1. objSpr.leftAnchor.target = firstEmptyCase.transform;
  2. objSpr.rightAnchor.target = firstEmptyCase.transform;
  3. objSpr.topAnchor.target = firstEmptyCase.transform;
  4. objSpr.bottomAnchor.target = firstEmptyCase.transform;

I believe this is the right way to do this as when running, in the inspector, i see the target change. but in fact, in the scene, it doesn't change. If i manually change the target to anything else and back to the right transform, it works.
I don't see why it behaves that way.

If you need any more details or if i'm not clear enough, ask :)

Pages: [1]