Up to date
This page is up to date for Godot 4.2
.
If you still find outdated information, please open an issue.
PlaceholderMaterial¶
继承: Material < Resource < RefCounted < Object
材质的占位类。
描述¶
加载使用 Material 子类的项目时,使用这个类的情况有两种:
运行使用专用服务器模式导出的项目,仅保留纹理的尺寸(因为游戏逻辑可能依赖纹理的尺寸,可能用来定位其他元素)。这样能够显著减小导出的 PCK 的大小。
由于引擎版本或构建不同而缺失这个子类(例如禁用了某些模块)。