Author Topic: show panel with tween when the mouse over a 3d object  (Read 12084 times)

deckard

  • Guest
Re: show panel with tween when the mouse over a 3d object
« Reply #15 on: November 21, 2012, 05:38:20 AM »
If I disables this code :
  1. NGUITools.SetActive(mainPanel, true);
  2.  
  3.             Vector3 pos = World_camera.WorldToScreenPoint(target.position);
  4.             pos.z = 0f;
  5.             pos = UI_camera.ScreenToWorldPoint(pos);
  6.             SpringPosition.Begin(mainPanel, pos, 10f);

The error is still there!
It happens when the mouse enters the Game window

deckard

  • Guest
Re: show panel with tween when the mouse over a 3d object
« Reply #16 on: November 21, 2012, 09:00:39 AM »
It Works :D

We must change the SpringPosition.worldSpace  to true !

  1. Vector3 pos = World_camera.WorldToScreenPoint(target.position);
  2.                         pos.z = 0f;
  3.                         pos = UI_camera.ScreenToWorldPoint(pos);
  4.                         SpringPosition sp = SpringPosition.Begin(mainPanel, pos, 10f);
  5.                         sp.worldSpace = true;


I'm happy, thank you for your help and your responsiveness!

lime-green.at

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 60
    • View Profile
Re: show panel with tween when the mouse over a 3d object
« Reply #17 on: December 04, 2012, 06:18:55 AM »
Im currently working on the exact same thing, would you mind uploading your demo project with the working solution?
regards

lime-green.at

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 60
    • View Profile
Re: show panel with tween when the mouse over a 3d object
« Reply #18 on: December 05, 2012, 01:32:00 AM »
Hey,

i managed to get the script running, my result now looks like:
My sprite got its pivot top-left, the only thing i need to solve is how to get the window not to clip to the center but to the top right point of the cube, got any suggestions for me?

Regards

deckard

  • Guest
Re: show panel with tween when the mouse over a 3d object
« Reply #19 on: December 05, 2012, 05:17:40 AM »
Hi!

Sorry I did not see your message.
When I have time I'll make you a small example!