> For the complete documentation index, see [llms.txt](https://portalgraphvr.gitbook.io/portalgraphdokyumento/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://portalgraphvr.gitbook.io/portalgraphdokyumento/kedokyumento/auto-size-adjustment.md).

# 自動サイズ調整

通常、Portalgraphは、スクリーンサイズを問わず、指定したサイズで現実に見えるように表示します。なので、身長170cmの人間はよっぽど大きなスクリーンでなければ表示しきれません。ですが、自動でスクリーンの縮尺を調整する機能が存在します。

PortalgraphプレハブのPortalgraphコンポーネントのAuto Screen Heightを、画面に収めたい高さに指定すると、そのサイズに収まるように自動で縮尺を調整します。身長170cmの人を表示するには、2と入力すると2mが収まるように縮尺されます。

なお、スクリーンの高さが指定されたサイズより大きかった場合は、縮尺は1倍になります。

また、Portalgraphは標準で\
1キー…縮小\
2キー…拡大\
3キー…リセット（サイズ、座標とも）\
になってますが、リセット時も自動調整された縮尺になります。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://portalgraphvr.gitbook.io/portalgraphdokyumento/kedokyumento/auto-size-adjustment.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
