Hello Guest

Author Topic: RE: 2dToolkit Camera  (Read 8733 times)

Linkified

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 12
    • View Profile
RE: 2dToolkit Camera
« on: August 01, 2012, 05:23:42 pm »
Hi

Just wondering if its at all possible to have the 2dtoolkit camera and give the backgrounds and buttons unity animations so I can build all the main menu interface in one scene?


unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: RE: 2dToolkit Camera
« Reply #1 on: August 01, 2012, 05:34:47 pm »
Yup, you can certainly do that. You can't animate color directly though, as it is a property and the Unity animation system doesn't animate properties, but you can use a script to propagate this through. Let me know if you want to try this and I'll post a script I have in the private support forum.

Linkified

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: RE: 2dToolkit Camera
« Reply #2 on: August 01, 2012, 05:37:40 pm »
But I can certainly animate movement between menus right? And yes I'm interested in the script if that is all right?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: RE: 2dToolkit Camera
« Reply #3 on: August 01, 2012, 06:32:00 pm »
I'll post the script sometime this weekend. It needs a bit of tidying up.
Well I'm guessing you have your menus laid out somehow, and you're moving the camera to move between them. If thats the case than thats perfectly doable.

Linkified

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: RE: 2dToolkit Camera
« Reply #4 on: August 01, 2012, 06:44:07 pm »
Actually the opposite didn't even think of that way, its moving all the menus via the unity animation built in. So is it easier/safer with 2Dtk to move the camera around the laid out menu structure rather than moving the menu structure in front of the camera?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: RE: 2dToolkit Camera
« Reply #5 on: August 01, 2012, 06:57:11 pm »
You can do either. Moving one object is quicker and easier than moving a lot more, but do what you prefer here. There are no restrictions placed by 2D Toolkit.

Linkified

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: RE: 2dToolkit Camera
« Reply #6 on: August 01, 2012, 07:30:29 pm »
But I can do this with the 2D toolkit camera to achieve a pixel perfect look?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: RE: 2dToolkit Camera
« Reply #7 on: August 01, 2012, 09:09:03 pm »
Yup, I don't see why you wouldn't be able to do that.

Linkified

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: RE: 2dToolkit Camera
« Reply #8 on: August 03, 2012, 11:31:22 am »
Here is the thing I'm struggling with is how do you use the anchors for changing resolutions as well as using the unity animation system to move the camera like you suggest, or place animations on grouped game objects to create that fast swish between menus?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: RE: 2dToolkit Camera
« Reply #9 on: August 03, 2012, 08:42:45 pm »
How are you doing this? A screenshot or at least a diagram would really help me suggest something.

Linkified

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: RE: 2dToolkit Camera
« Reply #10 on: August 04, 2012, 07:06:03 pm »
I've attached a diagram to better demonstrate what I'm trying to do. Thanks again.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: RE: 2dToolkit Camera
« Reply #11 on: August 04, 2012, 08:01:37 pm »
So each of those screens has its own edge aligned stuff? This isn't possible right now but could be made to work with a few small changes.

Linkified

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: RE: 2dToolkit Camera
« Reply #12 on: August 06, 2012, 09:48:55 am »
What I was going for was each screen or block contain menu components with a fixed camera and fixed background. And the individual menu screens move into few of the camera? Is this possible and any ways of doing this easily using the anchors for each menu component for differing resolutions?

Or would I have to use a standard camera and just give up on iphone 3gs?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: RE: 2dToolkit Camera
« Reply #13 on: August 06, 2012, 06:21:30 pm »
Its easy to sort this out. Drop me an email at support@unikronsoftware.com and I'll get you a patch.