void Initialize( DebugPrimitiveRenderer2D renderer, Camera camera, Transform meshTransform, int referenceScreenWidth, int referenceScreenHeight, float screenPlaneDistance) { safeAreaVisualizationEnabled = true; this.scale = 1f; _renderer = renderer; _camera = camera; _screenPlaneDistance = screenPlaneDistance; _meshTransform = meshTransform; _referenceScreenHeight = referenceScreenHeight; _referenceScreenWidth = referenceScreenWidth; _root = new DebugUiContainer(name: "RootContainer"); _input = new Input(); inputEnabled = true; // 初回サイズ決定 UpdateTransform(); }
public void Dispose() { _root = null; _input = null; _renderer = null; }