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.
Checking the stable version of the documentation...
PlaceholderMaterial¶
继承: Material < Resource < RefCounted < Object
材质的占位类。
描述¶
加载使用 Material 子类的项目时,使用这个类的情况有两种:
运行使用专用服务器模式导出的项目,仅保留纹理的尺寸(因为游戏逻辑可能依赖纹理的尺寸,可能用来定位其他元素)。这样能够显著减小导出的 PCK 的大小。
由于引擎版本或构建不同而缺失这个子类(例如禁用了某些模块)。