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.

PlaceholderMaterial

繼承: Material < Resource < RefCounted < Object

材質的占位類。

說明

載入使用 Material 子類別的專案時,使用這個類的情況有兩種:

  • 運作使用專用伺服器模式匯出的專案,僅保留紋理的尺寸(因為遊戲邏輯可能依賴紋理的尺寸,可能用來定位其他元素)。這樣能夠顯著減小匯出的 PCK 的大小。

  • 由於引擎版本或建構不同而缺失這個子類別(例如禁用了某些模組)。