# 演員（Actors）

演員是可以放置在遊戲世界中並與其他演員互動的基本對象。任何具有物理存在或可以某種方式由程序員完全控制的演員所代表的對象都可以是演員。這可以是玩家的角色或玩家可以互動的對象。

你可以使用 TypeScript 類來為你自己的演員編寫代碼。這些演員類隨後將作為資產可用，你可以在編輯器中實例化並放置在場景中。你還可以在遊戲過程中動態生成演員。&#x20;


---

# Agent Instructions: 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:

```
GET https://docs.hology.app/zh-tw/gameplay/yan-yuan-actors.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
