void OnEnable()
{
m_TargetCameraState.SetFromTransform(transform);
m_InterpolatingCameraState.SetFromTransform(transform);
m_TargetCameraState.x = 1;
m_TargetCameraState.y = 1;
m_TargetCameraState.z = 1;
GameObject mPlane = GameObject.Find("Background");
}
I figured out how to move the camera’s position from the SimpleCameraController.
Now what I would like to do is programmatically create a canvas to draw to that is in sized to match the cameras rectangle in my 3DWithExtras project. I tried at first to put a panel but I couldn’t figure out how to use a panel to draw lines and arcs with.
I see that there is a camera rect and also a rectpixels to use but need some help in putting it all together.
Thank You!