|
Post by witchthewicked on Jul 11, 2021 17:59:37 GMT
The panCamera creates an invisible ghost gameobject called PC2DPanTarget
It is also added to the CameraTargets[].
It would be cleaner if you made the target accessible via
public Transform proCamera.panTarget;
so instead of proCamera2D.CameraTargets[0] = randomTransform its proCamera2D.panTarget = randomTransform;
Also this means that .ClearAllTargets() wouldn't delete the PC2DPanTarget.
Please fix.
|
|
|
Post by Luís Pedro Fonseca on Jul 22, 2021 9:25:01 GMT
Hi witchthewicked, that's a good suggestion but it might take some effort since all calculations are currently relying on that list of targets. I'll add it to my to-do list though. Thanks for the suggestion!
|
|