You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CaptureCanvasWithCamera releases its RenderTexture while it's still Camera.targetTexture — console Error on every UI capture #7
Every capture_ui_canvas call logs this as an Error:
Releasing render texture that is set as Camera.targetTexture!
UnityEngine.Object:DestroyImmediate (UnityEngine.Object)
Coplay.Controllers.Functions.Implementations.VisualFeedbackFunctions:
CaptureCanvasWithCamera (UnityEngine.Canvas,string)
Cause: CaptureCanvasWithCamera calls DestroyImmediate on its temporary
RenderTexture while that RT is still assigned as the capture camera's
targetTexture.
Fix — clear the target before releasing the RT:
camera.targetTexture = null;
RenderTexture.active = null;
// then DestroyImmediate(rt) / ReleaseTemporary(rt)
Impact: cosmetic (capture still returns valid pixels) but it spams the
console with Error-level entries on every UI capture, which masks real errors.
Activity