Table of Contents

获取实体

你可以在教程项目的 Menu -> Getting an entity 中找到这个示例

说明

本 C# 初级教程介绍如何获取实体对象。

当脚本附加到场景中的实体后,我们可以通过 Entity 属性访问该实体的所有属性。例如,我们可以获取实体的名称,或者检查该实体在场景中是否有父级。

获取实体示例

代码

Warning

It looks like the sample you are looking for does not exist.