2D Toolkit Forum

2D Toolkit => Support => Topic started by: bochicoine on November 02, 2013, 10:40:01 pm

Title: Anchoring viewport clipping not allowed on this camera.
Post by: bochicoine on November 02, 2013, 10:40:01 pm
V: 2.2.3

(http://i44.tinypic.com/2ufybk3.jpg)
Why would this error occur?
Title: Re: Anchoring viewport clipping not allowed on this camera.
Post by: unikronsoftware on November 02, 2013, 10:58:31 pm
To set up anchored viewport clipping, you need to link it to another camera as the error says. I wouldn't recommend using it unless you have a real need for it - this can be pretty tricky to set upend there is often an easier way to do what you need. What is it exactly you're trying to do here?
Title: Re: Anchoring viewport clipping not allowed on this camera.
Post by: bochicoine on November 03, 2013, 10:47:09 pm
We need to anchor a button to the top-right corner of an existing unity-camera... I had it set up as I do in other scenes, and it seems to work fine, except the button is waaaay off where it should be.

This error is quite possibly nothing to do with it, other than it talks about anchoring?
Title: Re: Anchoring viewport clipping not allowed on this camera.
Post by: unikronsoftware on November 04, 2013, 12:55:27 pm
yup, you're right, its got nothing to do with anchors as you described them.
Doesn't the tk2dCameraAnchor work for you?
Title: Re: Anchoring viewport clipping not allowed on this camera.
Post by: bochicoine on November 04, 2013, 03:37:06 pm
I got it working yeah. The anchor works fine it was just multiplying the valule of my offset by the orthographic value of the camera, so it was appearing 5xTimes as far into the corner as I wanted it to. Fixed now, onto the next thing ;)