Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

PlaceholderMesh

继承: Mesh < Resource < RefCounted < Object

网格的占位类。

描述

加载使用 Mesh 子类的项目时,使用这个类的情况有两种:

  • 运行使用专用服务器模式导出的项目,仅保留纹理的尺寸(因为游戏逻辑可能依赖纹理的尺寸,可能用来定位其他元素)。这样能够显著减小导出的 PCK 的大小。

  • 由于引擎版本或构建不同而缺失这个子类(例如禁用了某些模块)。

属性

AABB

aabb

AABB(0, 0, 0, 0, 0, 0)


属性说明

AABB aabb = AABB(0, 0, 0, 0, 0, 0)

  • void set_aabb ( AABB value )

  • AABB get_aabb ( )

局部空间中,包含这个网格的最小 AABB