• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,013 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0048 秒)

931. 骨骼动画-换装 [ 42%]

...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

932. 垂直滑动条组件 · LayaAir3.0文档 · LAYABOX [ 42%]

...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

933. 水平滑动条组件 · LayaAir3.0文档 · LAYABOX [ 42%]

...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

934. 使用UI组件tree时,添加的数据结构必须是xml吗?添加xml时对于tree的单元格里面的label如何控制例如visible的属性 [ 42%]

...;/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

935. 如何获取animation的node节点? [ 42%]

...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

936. 鼠标交互-键盘交互 [ 42%]

...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

937. 骨骼动画-换装 [ 41%]

...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

938. 模型与动画的导入使用 · LayaAir3.0文档 · LAYABOX [ 41%]

...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

939. 微信小游戏报错 the .lh file root type must be Scene [ 41%]

...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

940. 为什么自定义shader大图正常,小图就被缩小了 [ 41%]

...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