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

大约有 1,280 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0063 秒)

731. Laya.Texture2D.load崩溃问题 [ 59%]

... = new Laya.BlinnPhongMaterial();   Laya.Texture2D.load("ceshi.jpg", Laya.Handler.create(this, function (texture) { material.albedoTexture = texture; })); 附件 : --> 2020-12-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

来源: Laya_社区 发布时间: 20201207

732. java调用js中的方法 [ 59%]

...型以后,调用destroy,以前clone的对象也消失了 源代码中Handler中的setTo()方法 TS 如何调用第三方JS库 问题状态 最新活动: 2017-11-29 17:03 浏览: 1481 关注: 2 人 浪货界扛把子 • 2017-11-29 17:52 链接无法打开

来源: Laya_社区 发布时间: 20171129

733. 微信小游戏加载ProtoBuf文件和图片加载问题 [ 59%]

..., type: Loader.IMAGE}, //这张图有问题。 ]; Laya.loader.load(loadArr,Handler.create(this, onLoad2)); 目前不知道如何解决。 有些图片没有问题,有些图片不可以,也有可能是这个图的问题,我再排查一下,重点是上个问题,protobuf文件的加载问题...

来源: Laya_社区 发布时间: 20180301

734. List 添加事件 [ 59%]

...ay = arr; this.list.selectEnable =true;//列表是否点击 this.list.mouseHandler =new laya.utils.Handler(onSelect); 他不会进去我下面的那个函数啊! 2017-05-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 ...

来源: Laya_社区 发布时间: 20170512

735. 当使用Image作为一个对象的遮罩时,设置Image的ScaleX为0时遮罩失效! [ 59%]

...Laya.loader.load([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS}],Laya.Handler.create(this,this.loaded,null)); } private loaded():void{ var img:Laya.Image = new Laya.Image(); img.skin = "comp/img_pro.png"; Laya.stage.addChild(img); var imgMask:Laya.Image = new Laya.Image(); imgMask.skin = img.sk...

来源: Laya_社区 发布时间: 20170327

736. 关于纹理的显示问题 [ 59%]

...    at LayaUISample.__proto.onLoaded (LayaUISample.max.js:1135)     at Handler.__proto.runWith (LayaUISample.max.js:701)     at ResInfo.loadComplete (LayaUISample.max.js:18073)     at EventHandler.__proto.runWith (LayaUISample.max.js:702)     at ResInfo.__proto.event (LayaUISample.max.js:4...

来源: Laya_社区 发布时间: 20180725

737. 材质动画的使用(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 59%]

...ene3D.load("res/threeDimen/scene/materialScene/Conventional/layaScene.ls", Handler.create(this, function(scene:Scene3D):void { Laya.stage.addChild(scene); var camera:Camera = scene.getChildByName("Main Camera") as Camera; camera.addComponent(CameraMoveScript); })); ```

来源: Laya2.0_文档 发布时间: 20210714

738. Laya中Button等组件lose skin的问题 [ 59%]

...xlocal/bg2.jpg",type:Laya.Loader.IMAGE} ];  Laya.loader.load(resArr, Laya.Handler.create(null, onLoaded));  function onLoaded(): void {     Laya.URL.basePath ="https://xxx.com/";     //实例UI界面     var Main: MenuPageUI = new MenuPageUI();     Laya.stage.addChild(Main); } 在...

来源: Laya_社区 发布时间: 20191122

739. Panel使用文档(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 59%]

...00); //预加载所需资源 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, this.onLoaded)); } private onLoaded(): void { //实例化Panel组件 var panel: Laya.Panel = new Laya.Panel(); //给panel添加背景色 panel.graphics.drawRect(0, 0, 100, 100, "#ffcccc"); //给panel设...

来源: Laya2.0_文档 发布时间: 20210715

740. 物理刚体(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 59%]

...数。 ```typescript //加载模型 Sprite3D.load("Conventional/shoot.lh",Handler.create(this,function(sp:Sprite3D):void{ //获取到Meshsprite3d var cube:MeshSprite3D = scene.addChild(sp.getChildAt(0)) as MeshSprite3D; //获取刚体 var cubeRigid:Rigidbody3D = cube.getComponent(Rigidbody3D); }...

来源: Laya2.0_文档 发布时间: 20210714