Author Topic: Cursor Chopping sprite on the left side of cursor [SOLVED]  (Read 3044 times)

alternativee30

  • Guest
Cursor Chopping sprite on the left side of cursor [SOLVED]
« on: June 13, 2012, 10:29:05 PM »
Having a strange problem i havent got a grasp on yet.

Using the character example to setup a 2d inventory system. when i grab an item from my characters item slot everything to the left of my actual cursor point will not be rendered. If i manually change my pivot point on the left of the item the whole item will show fine because the graphic is to the right of the cursor. I would rather use the default center pivot point however. 

Attached screenshot of example.

« Last Edit: June 16, 2012, 06:06:55 AM by alternativee30 »

PhilipC

  • Guest
Re: Cursor Chopping sprite on the left side of cursor
« Reply #1 on: June 14, 2012, 02:21:38 PM »
Are you using some sort of clipping on the object/ scene?

alternativee30

  • Guest
Re: Cursor Chopping sprite on the left side of cursor
« Reply #2 on: June 14, 2012, 05:39:33 PM »
I am using the Anchor example that came with NGUI for the whole UI Inventory screen to anchor each sprite to the position to update with resolution change. I made this UI screen straight from those scripts combined with the character example.

For whatever reason when the 3d character example container scripts are inputted to the modified anchor example UI screen i made i get clipping on my cursor.

 Every other aspect of the containers/inventory is working fine on this screen with some tweaking i did. Only problem now is the clipping.

alternativee30

  • Guest
Re: Cursor Chopping sprite on the left side of cursor [Solved]
« Reply #3 on: June 16, 2012, 06:06:35 AM »
Figured it out. It turned out that the cursor Didn't play nice with two other UI components.

Clipping Occured.....
-While sharing the center anchor with other GUI components
-While using the  UITiled Sprite Script.


Now am using regular sprite script / stretch for backdrop.
« Last Edit: June 16, 2012, 06:08:10 AM by alternativee30 »