Example #1
0
 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();
 }
Example #2
0
 public void Dispose()
 {
     _root     = null;
     _input    = null;
     _renderer = null;
 }