Benjamin Zach

1

votes
3

answer
91

views

Visual Studio loses ability to attach to Unity, why?

I'm using Visual Studio with Unity. In general in VS I can simply click 'Attach to Unity' and it will build the solution and indeed attach to Unity. Sometimes, however, a project loses the 'ability' to do so, what means that suddenly clicking the button will only build the solution and not attach to...
Benjamin Zach
1

votes
0

answer
21

views

Is it possible to use the Goolge ARCore camera sharing feature in Unity?

The Google ARCore documentation for Android describes how to share the camera access with ARCore (https://developers.google.com/ar/develop/java/camera-sharing). Is there a way to use this feature from inside Unity? The documentation does not contain any hint.
Benjamin Zach
2

votes
2

answer
51

views

Memory leak when Camera.targetTexture = new RenderTexture(…)

I have written an EditorWindow that renders the view of a camera into an additional editor window. In order to adapt instantly when the window is resized, the target texture of the camera is reassigned (actually it is only done when necessary) at tick time to demonstrate the problem: public class Pl...
Benjamin Zach
3

votes
1

answer
48

views

Save calculation result into const reference

I've recently stumbled upon a piece of which I could not say what particular sense it has; consider this: const FVector2D L0 = (Start.LeftPos * ScaleFactor - Offset) / Size * TargetSize; const FVector2D R0 = (Start.RightPos * ScaleFactor - Offset) / Size * TargetSize; And: const FVector2D& C0 = (L0...
Benjamin Zach