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

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

1391. 模型的功能介绍(TypeScript-3D基础(TS)-LayaAir3D之模型和网格) [ 46%]

...escript //初始化3D场景 var scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")); //获取球型精灵 var sphere = scene.getChildByName("Sphere"); //获取精灵的mesh var sphereMesh = sphere.meshFilter.sharedMesh; //此时已经拿...

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

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

...ass GameMain{ constructor() { Laya.init(1280,720); 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:L...

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

1393. 用最新版本的IDE开发,用AS语言开发,用HttpRequest加载图片报错,用JS语言开发却可以加载 [ 46%]

...,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.send("res/monkey2.png","","get","arraybuffer"); } private function completeHandler(data:Object):void { //加载完成返回的data是arraybuffer; //.......这里处理我们加密的图片数据,假设我们的图片加密数...

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

1394. 获取lh动画控制失败【已解决】 [ 46%]

...aya.BlinnPhongMaterial",                         "path":"Resources/unity_builtin_extra.lmat"                     }                 ]             },             "components":{                 "Rigidbody":{},           ...

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

1395. 如何用代码控制panel的vscroll滚动幅度 [ 46%]

...mo() { Laya.init(600,600); Laya.stage.bgColor='#EEFFCC'; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { //panel 切记设置宽高,否则panel不显示 var panel:Panel=new Panel(); panel.size(300,300); panel.pos(100,100...

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

1396. ReferenceError: Loader is not defined 搞不懂引擎原生的也会报这个错? [ 46%]

...loveControl.startGame();  //点击重置按钮,重新开始 this.button_reset.on(Laya.Event.CLICK, this, this.onClickReset);  let partPath = "res/aixin_bao.part"; Laya.loader.load(partPath, Laya.Handler.create(this, this.onAssetsLoaded), null, Loader.JSON); }  onAssetsLoaded(settings) {    ...

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

1397. 劫持的问题已经找电信投诉了并处理了一下,这是后续问题 [ 46%]

... • 2018-07-16 12:47 你说得对,打包过程资源路径我写到\bin\res了,改过来就完全没问题了,也不需要注释掉checkApkUpdate函数。太感谢了!赏金怎么确认给你? alex • 2018-07-16 12:52 我追问一下,电信的工作人员给我的反馈是已经解决...

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

1398. laya.resource.PrefabImpl_API3.0 [ 46%]

... Public/Protected All Inherited Externals Only exported Menu Globals "laya/resource/PrefabImpl" PrefabImpl Class PrefabImpl 预制体导入 Hierarchy Prefab PrefabImpl Index Constructors constructor Properties _id api data destroyedImmediately lock name url uuid version DEBUG Accessors cpuMemory dep...

来源: Laya3.0_api 发布时间: 20231115

1399. 创建动画时画布的width和height与 实例化后的ani.size(width, height) 有什么区别 [ 46%]

... () { this.aniBirdSing = new Laya.Animation(); this.aniBirdSing.loadAtlas("res/atlas/birdsing.json"); this.aniBirdSing.interval = 35; // 设置播放间隔(单位:毫秒) this.aniBirdSing.index = 0; // 当前播放索引 this.aniBirdSing.zOrder = 1; this.aniBirdSing.play(); this.aniBirdSing.pi...

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

1400. 使用laya官方示例代码制作微信小游戏无法显示 [ 46%]

...//程序入口 Laya.init(600, 400, WebGL); //激活资源版本控制 Laya.ResourceVersion.enable("version.json", Handler.create(null, beginLoad), Laya.ResourceVersion.FILENAME_VERSION); function beginLoad(){ Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); } function onLoad...

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