大约有 1,013 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0048 秒)
...onError); this.mFactory.loadAni(this.mAniPath); } private onError():void { console.log("error"); } private parseComplete():void { //创建模式为1,可以启用换装 this.mArmature = this.mFactory.buildArmature(1); this.mArmature.x = this.mStartX; this.mArmature.y = this.mStartY; Laya.stage.addC...
来源: Laya_示例 发布时间: 20241002
...hange); this.owner.addChild(vs); } private onChange(value: number): void { console.log("滑块的位置:" + value); } } 运行效果: (动图2-1) Copyright ©Layabox 2022 all right reserved,powered by LayaAir Engine更新时间: 2023-09-19 17:44:34 img{cursor:pointer}
来源: Laya3.0_文档 发布时间: 20230919
...hange); this.owner.addChild(hs); } private onChange(value: number): void { console.log("滑块的位置:" + value); } } 运行效果: (动图2-1) Copyright ©Layabox 2022 all right reserved,powered by LayaAir Engine更新时间: 2023-09-20 15:58:48 img{cursor:pointer}
来源: Laya3.0_文档 发布时间: 20230920
...;/dir>"+ "</data>"; var xml = this.parseXMLFromString(xmlString); console.log(this.m_tree) this.m_tree.xml =xml; 2017-07-17 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 这里以alpha,官方tree示例为例,你可以参考下 1、在xml里,给你的项添加一个关于alph...
来源: Laya_社区 发布时间: 20170717
...killAniArray[i]; // 将渲染后的小切片追加到动画中 }catch(e) { console.log('warning: animation in loading'); // 过于频繁加载动画时给予警告 } }) } ani.interval = Math.round(1000/aniProps.mc[options.srcName].frameRate); // 设置动画的帧率 ani.autoPlay = options.autoPlay;...
来源: Laya_社区 发布时间: 20190215
...oardInspector() { let numKeyDown = keyDownList.length; let newText = '[ '; console.log(numKeyDown); for (let i = 0; i ; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = S...
来源: Laya2.0_示例 发布时间: 20241002
...onError); this.mFactory.loadAni(this.mAniPath); } private onError():void { console.log("error"); } private parseComplete():void { //创建模式为1,可以启用换装 this.mArmature = this.mFactory.buildArmature(1); this.mArmature.x = this.mStartX; this.mArmature.y = this.mStartY; Laya.stage.addC...
来源: Laya2.0_示例 发布时间: 20241002
...e { private _animator: Laya.Animator; private _isRun: boolean; onAwake() { console.log("Game start"); //加载指定的模型预制体,并添加到Scene3D场景内 Laya.loader.load("girl/girl.lh").then(res => { let girl : Laya.Sprite3D = res.create(); this.scene3D.addChild(girl); //获得Animat...
来源: Laya3.0_文档 发布时间: 20230303
...ring = "res/layaScene/xiangsuqiche.ls"; public LoadScene3D(): Laya.Scene { console.log("screen#DPath = " + this.screen3DPath); let scene: Laya.Scene = Laya.Scene.load(this.screen3DPath); Laya.stage.addChildAt(scene, 0); this.InitCamera(scene); return scene; } 微信小游戏报错 Scene: the .lh fil...
来源: Laya_社区 发布时间: 20180323
...ray = []; var texWidth = texture.width; var texHeight = texture.height; // console.log("liuyi",texWidth); //定义颜色值,取值范围0~1浮点 var red = 1; var greed = 1; var blue = 1; var alpha = 1; //在顶点数组中放入4个顶点 //每个顶点的数据:(坐标x,坐标y...
来源: Laya_社区 发布时间: 20180619