Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

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(value: AABB)

  • AABB get_aabb()

局部空間中,包含這個網格的最小 AABB