LevelOfDetailSwitch QML Type
提供了一种根据距离或屏幕尺寸启用子实体的方法。更多...
| Import Statement: | import Qt3D.Render 2.12 |
| In C++: | QLevelOfDetailSwitch |
| Inherits: | |
| Status: | Deprecated |
此类型已弃用。我们强烈建议不要在新代码中使用它。
属性
- currentIndex : int
详细说明
该组件被分配给一个实体。当该实体与摄像机的相对距离发生变化时,LevelOfDetailSwitch 将禁用除索引为currentIndex 的实体之外的所有子实体。
另请参阅 LevelOfDetail 。
属性文档
currentIndex : int
当前所选子实体的索引。
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.