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

大约有 2,311 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0059 秒)

1951. 如何为灯光添加阴影(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 47%]

...产生阴影: ```typescript // A plane receive shadow. var grid = scene.addChild(Laya.Loader.getRes("res/threeDimen/staticModel/grid/plane.lh")); grid.getChildAt(0).meshRenderer.receiveShadow = true; ....... // A sphere cast/receive shadow. var sphereSprite = this.addPBRSphere(Laya.PrimitiveMesh.c...

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

1952. 1.7版本要初始化后有些代码才能用了 [ 47%]

...ht test.text.text = "dsafdsdsada"; test.text.color = "#ff0000"; Laya.stage.addChild(test.text); </script> 2017-03-02 0 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 kdsrpg 相关问题 LayaAir3D UnityPlugin 使用须知-版本更新...

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

1953. laya.ui.ViewStack_API3.0 [ 47%]

...m url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addItem bubbleEvent callLater clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fre...

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

1954. JS进度条加载问题 [ 47%]

...dler(this,onChange); //当progressBar的value值改变时触发 Laya.stage.addChild(progressBar); onchange(); } function onChange(value) { trace("进度: "+Math.floor(value*100)+"%"); } function onProgress(pro) { trace("加载了总文件的:"+pro+"%") progressBar.value=pro; if(progressBar.value==1)...

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

1955. video在安卓手机上,怎么设置同层播放,还有怎么设置隐藏控制播放按钮 [ 47%]

...播放 // 设置画布上的对齐参照物 reference = new Sprite(); this.addChild(reference); reference.pos(0, 0); reference.size(GoldConsts.contextWidth, GoldConsts.contextHeight); reference.graphics.drawRect(0, 0, reference.width, reference.height, "#cccccc"); // 每次舞台尺寸变更时,...

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

1956. 如何为灯光添加阴影(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 47%]

...影: ```typescript // A plane receive shadow. var grid: Sprite3D = scene.addChild(Loader.getRes("res/threeDimen/staticModel/grid/plane.lh")); (grid.getChildAt(0)).meshRenderer.receiveShadow = true; ....... // A sphere cast/receive shadow. var sphereSprite: MeshSprite3D = this.addPBRSphere(Primitiv...

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

1957. 分享:为List组件下Item(Box)下的Button(或其他组件)进行监听! [ 47%]

...ull, Loader.ATLAS); //添加UI界面 function onAssetLoaded() { Laya.stage.addChild(new TestUI()); } 附件 : --> ButtonClickDemo.rar 2017-05-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 8 个回复 Monica - 知识达人...

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

1958. 渲染优化原则(TypeScript-2D进阶篇(TS)-性能优化) [ 47%]

...以直接跳过排版。 ```typescript this.text.text="text"; Laya.stage.addChild(this.text); //后面只是更新文字内容,使用changeText能提高性能 this.text.changeText("text changed."); ``` Text.changeText会直接修改绘图指令中该文本绘制的最后一条指令,这种前面...

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

1959. new Laya.Templet() 时,说这不是一个constructor [ 47%]

...ew Animation(); this.aniFighter.loadAtlas(this.strAniConfPath); Laya.stage.addChild(this.aniFighter); this.aniFighter.interval = 100;//30;//设置播放间隔30毫秒 this.aniFighter.index = 1;//当前播放索引 this.aniFighter.play();//播放图集动画 this.aniFighter.loop = false; //获取动...

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

1960. layaFlash 无法使用 Loader 加载外部SWF和图片 [ 47%]

...method stub var mc:MovieClip=event.target.content as MovieClip; mc.play(); addChild(mc) } } }提示: 1、在laya下使用laoder加载SWF文件,需添加load()方法的LoaderContext参数。图片则不需要。 2、主文档类不会自动添加舞台,需要在构造函数中收到添加...

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