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

大约有 4,373 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0098 秒)

2181. 关于项目分包的问题?? [ 65%]

...dColor="0xffffff",frameRate=60)] public class Main extends Sprite { public function Main():void { IFlash.setSize(800, 600);//2D项目中设置场景尺寸 IFlash.setOrientationEx(1); //是否为横屏模式 IFlash.setBgcolor("#FFFFFF"); //背景色 IFlash.showInfo(false); //是否显示帧率 if (st...

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

2182. Sprite-缓存为静态图像 [ 65%]

...ya.utils.Stat; import laya.webgl.WebGL; public class Sprite_Cache { public function Sprite_Cache() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgCo...

来源: Laya2.0_示例 发布时间: 20260303

2183. App Updates for HTML5 Apps 这意味着iOS端就废了? [ 65%]

...apps must be self-contained bundles. This means that the core features and functionality of the app must be contained within the binary of the software, rather than made possible by referring users outside of the approved app, including through the use of HTML5. Apps that provide core features and f...

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

2184. BlinnPhong材质详解(TypeScript-3D基础(TS)-模型材质详解) [ 65%]

...xture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置材质纹理 material.albedoTexture = texture; })); earth2.meshRenderer.material = material; ``` ![](img/4.png)(图4) ##### 法线贴图 **Normal maps(法线贴图)**是一个灰度图,可以将...

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

2185. HTMLCanvas Laya.stage.addChild(HTMLCanvas); 挂载到舞台报错 [ 65%]

...         *          * htmlCanvas.toBase64("image/png",0.92,function(base64){//webgl和canvas模式下为同步方法,加速器下是异步方法          *                      trace(base64);//打印图片base64信息,可以发给服务器或者保存...

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

2186. LIST renderHandler的ITEM高度自定义后,设置content变更其内部容器大小不生效 [ 65%]

...内部容器大小不生效 ViewActivityLimitedTask.prototype.initComp = function() { this.list_view.vScrollBarSkin = ""; this.list_view.scrollBar.elasticBackTime = ListConst.elasticBackTime; this.list_view.scrollBar.elasticDistance = ListConst.elasticDistance; this.list_view.renderHandler = new Lay...

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

2187. sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale [ 65%]

...en.to(box.potOld,{     x:1     ,y:2     ,update:new Laya.Handler(box,function(){         this.transform.position = this.potOld;     }) }, ConstValue.animationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){     console.log("complete"); }),ConstValue.animationDelay);   ...

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

2188. 物理引擎,刚体施加力效果错误,有人帮忙看下吗 [ 65%]

...Sprite3D.load("LayaScene_cu_demo/Conventional/Cu.lh", Handler.create(null, function(sp:Sprite3D):void { cu = scene.addChild(sp) as Sprite3D; cu.transform.rotate(new Vector3(0, -90, 0), true, false); _rb = cu.getComponent(Rigidbody3D) as Rigidbody3D; }));   //施加作用力或冲量 btn_a.on(Event...

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

2189. 如何实现点击列表时,点击item中的按钮有事件,点击item其他位置没有事件,目前只能实现点击list里的item组件进行事件监听,没办法实现监听item中的button [ 65%]

...事件这里就不用说了,应该了解了!比如代码 方法一: function renderHandler(item:box,index:int):void { var button:Button = item.getChildByName("buton") as Button;(名字是你在ide里自己设定的) button.on(事件注册) }   方法二: list组件.itemRender  = UI页面 f...

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

2190. 同一个Animation,创建多个实例只能显示一个(测试项目已上传) [ 64%]

...yer.addChild(p) } /////////////wheelas.as public function wheel(){ this.graphics.drawCircle(0,0,40,"#fff"); _wheel= new Animation(); _wheel.loadAnimation("wheeling.ani"); } public function init():void{ this.addChild(_wheel); _wheel.play(); }   附件 : --> 相关链接 : h...

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