大约有 3,617 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0110 秒)
Laya_社区(2682) Laya3.0_api(265) Laya2.0_文档(227) Laya2.0_api(113) Laya3.0_文档(104) laya_api(98) Laya_示例(83) Laya2.0_示例(45)
...标事件。你给Sprite手动设置个宽高,再把mouseEnabled设置为true 2017-01-20 0 4 分享 微博 QZONE 微信 Laya_XS 赞同来自: 你的问题有两个方法可以解决,第一个方法如下: var w:int = 110; var h:int = 40; var btn:Sprite = new Sprite(); btn.size(w, h); btn.graph...
来源: Laya_社区 发布时间: 20170120
...exture=Loader.getRes(pic) }else{ this.bgimg.loadImage(pic); } this.donghua=true; this.bgimg.x=x; this.bgimg.y=y; this.bgimg.mvtox=movetox; this.bgimg.mvtoy=movetoy; this.bgimg.speedx=speedx; this.bgimg.speedy=speedy; console.log("funmovebg"+movetox); Laya.timer.frameLoop(speed, this, funbg); 2...
来源: Laya_社区 发布时间: 20171024
...效果。 ```typescript //正交投影属性设置 camera.orthographic = true; //正交垂直矩阵距离,控制3D物体远近与显示大小 camera.orthographicVerticalSize = 7; //移动摄像机位置 camera.transform.translate(new Laya.Vector3(0, 26.5, 45)); //旋转摄像机角度 camera.transfo...
来源: Laya2.0_文档 发布时间: 20210715
...e3D) { //设置精灵接收阴影 childSprite.meshRenderer.receiveShadow = true; //设置精灵可投射阴影 childSprite.meshRenderer.castShadow = true; } else if(childSprite instanceof SpotLight) { //设置实时阴影的阴影模式 childSprite.shadowMode = ShadowMode.Hard; //设置灯光产生...
来源: Laya2.0_文档 发布时间: 20210715
...效果。 ```typescript //正交投影属性设置 camera.orthographic = true; //正交垂直矩阵距离,控制3D物体远近与显示大小 camera.orthographicVerticalSize = 7; //移动摄像机位置 camera.transform.translate(new Laya.Vector3(0, 26.5, 45)); //旋转摄像机角度 camera.transfo...
来源: Laya2.0_文档 发布时间: 20210714
...源。 list.pos(100, 100);//设置 list 的位置。 list.selectEnable = true;//设置 list 可选。 list.selectHandler = new Handler(this, onSelect);//设置 list 改变选择项执行的处理器。 Laya.stage.addChild(list);//将 list 添加到显示列表。 } private function onSelect(index:in...
来源: Laya3.0_api 发布时间: 20231115
...s:306 inheritdoc override Parameters Default value destroyChild: boolean = true Returns void destroyChildren destroyChildren(): void Inherited from Node.destroyChildren Defined in laya/display/Node.ts:182 销毁所有子对象,不销毁自己本身。 Returns void event event(type: string, data?: ...
来源: Laya3.0_api 发布时间: 20231102
...景进度回调 */ openScene(url = null, otherHandler = null, closeOther = true, param = null, complete = null, progress = null) { if (!url) return if (otherHandler === null) otherHandler = this._promiseHandler if (!this._loadScene) { Laya.timer.loop(10, this, this.openScene, [url, otherHandler, clo...
来源: Laya_社区 发布时间: 20181124
...的play事件templateAPI里没有找到,另外第二个参数,我改成true也没发现有什么变化,第二个参数什么作用的,原来我以为是只重复执行意思,但是去掉括号里的第二个参数,动画没发生变化,照常循环动画,谢谢,我是无经验者...
来源: Laya_社区 发布时间: 20180316
...tage. renderingEnabled = false 停止渲染后 如何恢复 重新设置为true 后。 ios 出现了一个线程上的错误! 2017-08-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: ...
来源: Laya_社区 发布时间: 20170811