2D Toolkit Forum

2D Toolkit => Support => Topic started by: quangtu89 on August 12, 2013, 03:47:47 am

Title: Deptmask with gameObject texture and content position
Post by: quangtu89 on August 12, 2013, 03:47:47 am
I have problem with my scrollable area , when i change the position of content to move up and scale height in run time, the content position cannot change so everything has move up cannot seen .Another problem is i can use mask to hide the texture of normal gameobject .Can you help me . Thanks in advance  :)
Title: Re: Deptmask with gameObject texture and content position
Post by: unikronsoftware on August 12, 2013, 12:04:26 pm
Hi,
I'm not sure what the issue is - can you please post some pictures to show the problem?

With the scrollable area you can't move the origin of the content object. It must be at 0, 0, 0. If you want to offset data, you should offset the data under the content object instead, and keep the origin at 0,0,0
Title: Re: Deptmask with gameObject texture and content position
Post by: quangtu89 on August 15, 2013, 03:07:12 am
This is my problem with mask and texture of gameobject
Title: Re: Deptmask with gameObject texture and content position
Post by: unikronsoftware on August 15, 2013, 01:54:41 pm
The mask clips things INSIDE it.
Select the mask object, and make sure the blue box contains the sprites you want to mask.
Title: Re: Deptmask with gameObject texture and content position
Post by: quangtu89 on August 16, 2013, 02:29:46 am
Thanks for support . Good job