Hello Guest

Author Topic: Anchoring viewport clipping not allowed on this camera.  (Read 4685 times)

bochicoine

  • Newbie
  • *
  • Posts: 15
    • View Profile
Anchoring viewport clipping not allowed on this camera.
« on: November 02, 2013, 10:40:01 pm »
V: 2.2.3


Why would this error occur?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Anchoring viewport clipping not allowed on this camera.
« Reply #1 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?

bochicoine

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Anchoring viewport clipping not allowed on this camera.
« Reply #2 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?
« Last Edit: November 04, 2013, 08:34:55 am by bochicoine »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Anchoring viewport clipping not allowed on this camera.
« Reply #3 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?

bochicoine

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Anchoring viewport clipping not allowed on this camera.
« Reply #4 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 ;)