Hello Guest

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 - tasadar

Pages: [1]
1
Support / Re: Button Camera Bug
« on: April 16, 2012, 02:39:30 pm »
ok that solves it but i think you should add another if case there...

2
Support / Re: Button Camera Bug
« on: April 16, 2012, 01:16:34 pm »
Does this camera you're using have the tag set to "MainCamera"?

nope.

3
Support / Button Camera Bug
« on: April 16, 2012, 01:34:48 am »
Hi, first message :) i've just started using 2dtk and so far so good.

i've just encountered a problem where the camera can not be found by the tk2dButton script. i dont provide a camera to the button(i cant actually since there is no camera in the scene, the camera that comes from the initial scene is used in all scenes) and as i checked  in the Start function Camera.current,Camera.main & Camera.mainCamera are all null so it throws exception when you try to press the button. To fix it i replaced "Camera.main" with "Camera.allCameras[0]". I've no idea why it happens though.

Pages: [1]