2D Toolkit Forum

2D Toolkit => Support => Topic started by: gonzalez.martin90 on January 16, 2015, 01:52:59 pm

Title: Unable to find any tk2dUICameras ScrollArea
Post by: gonzalez.martin90 on January 16, 2015, 01:52:59 pm
Hi, i dropped teh ScrolleableVertical prefab into the scene and tried to test it with one of my screens but this error is coming up and i cannot scroll.

Unable to find any tk2dUICameras, and no cameras are connected to the tk2dUIManager. You will not be able to interact with the UI.

I dont know why is not finding the camera.

Thanks!
Title: Re: Unable to find any tk2dUICameras ScrollArea
Post by: unikronsoftware on January 16, 2015, 01:54:24 pm
As the error says, do you have any tk2dUICameras in your scene?
Title: Re: Unable to find any tk2dUICameras ScrollArea
Post by: gonzalez.martin90 on January 16, 2015, 02:19:03 pm
No i did not but i drag one into my camera. No works but i have another issue.
 Can i change de Content Lenght in runtime?
Title: Re: Unable to find any tk2dUICameras ScrollArea
Post by: gonzalez.martin90 on January 16, 2015, 02:21:38 pm
I done it.

 For other user who wants to change just have a variable of the scroll and equal the ContentLength to MeasureContentLength();
Title: Re: Unable to find any tk2dUICameras ScrollArea
Post by: unikronsoftware on January 16, 2015, 02:28:52 pm
Can you post a screenshot of that camera in the inspector please?