大约有 153 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0049 秒)
...ean = true): void 同样,我们在3D-RPG项目中,通过鼠标点击来切换所见区域,代码如下: //CameraControll.ts类脚本中,添加3个节点对象,把3个不同的房子建筑拖入到属性中 @property( { type: Laya.Sprite3D } ) public target1: Laya.Sprite3D; @property({ ty...
来源: Laya3.0_文档 发布时间: 20251010
...() this.getChildByName('text').on(Laya.Event.CLICK, this, function () { // 切换打开场景方式 查看效果不同 loadPage.openScene('page2.scene', this.getUserInfo, true, [1, 2, 3]) // loadPage.openScene2('page2.scene', this.getUserInfo, true, [1, 2, 3]) }) } /** * 获取用户信息需要5s...
来源: Laya_社区 发布时间: 20181124
...片的材质并不相同,所以每次从文字到图片都产生上下文切换,最后产生了6个DC。 观察一下,其实四个按钮之间并不相交,所以如果能智能地将渲染顺序调整为: 这样,DC就降低到了2个,达到了优化的目的,并且显示效果是一...
来源: Laya3.0_文档 发布时间: 20251010