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

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

651. 资源加载 · LayaAir3.4 · 引擎文档 · LAYABOX [ 46%]

...json)文件 [key: string]: any; } TextureConstructParams { width?: number, height?: number, format?: TextureFormat, mipmap?: boolean, canRead?: boolean, sRGB?: boolean, } TexturePropertyParams { wrapModeU?: number, wrapModeV?: number, filterMode?: FilterMode, anisoLevel?: number, premultiplyAlpha?: ...

来源: Laya3.0_文档 发布时间: 20251010

652. 粒子在webgl情况和canvas情况存在显著差异,请看图 [ 46%]

...WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Stat.show(); Laya.URL.basePath += "../../"; Laya.loader.load("r...

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

653. LayaAirIDE的可视化2D物理编辑入门(TypeScript-IDE篇(TS)-使用2d物理系统) [ 45%]

...体 `BoxCollider` ![img](img/5-1.png) (图5-1) ##### 宽高 `widthheight` 矩形碰撞体BoxCollider,也可以直译为盒子碰撞体,是封闭的直角平行四边形碰撞框,为节点添加BoxCollider组件后,默认的BoxCollider宽高会等于该节点的宽高。如果节点的...

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

654. 能不能添加一个控件可以让文字和组件实现弹性滚动啊 [ 45%]

...ollBarSkin="res/home/button_speaker.png"; panel.width=300; panel.height=300; panel.x = 200; panel.y = 200; This.addChild(panel); panel.addChild(text); panel.vScrollBar.min=1; panel.vScrollBar.max=500; panel.vScrollBar.value=panel.vScrollBar.max; Laya.timer.frameLoop(12,this,onLoop); functi...

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

655. Cannot read property 'toDefault' of undefined报错是什么原因 [ 44%]

...age.addChild(new MousePickingScene()); // Laya.init(Browser.width, Browser.height); // Laya.stage.scaleMode = Stage.SCALE_NOSCALE; infoText = "距离:null"; mySwitch = true; target = new BMap.Point(113.392307, 23.062487); createDom(); initMap(); createButton(); var successHandler = new Handler(thi...

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

656. 使用对象池重复使用skeleton报错,请问有解决方案吗?谢谢 [ 44%]

...nIndex = 0; (function() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Stat.show(); startFun(); })(); function startFun() { mAniPath = "res/spine/spineRes1/dragon.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.on...

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

657. 请问object层中添加的sprite怎么添加点击事件 [ 44%]

... flower.pivotY=80; flower.zOrder = budai.y; flower.autoSize = true; flower.height = 100; flower.width = 100; flower.size(100,100); flower.on(Laya.Event.CLICK,this,function() {    alert("My Name is Bear"); }); mallLayer.addChild(flower); mallLayer._showGridList.push(flower); 附件 : --> hxwlworld...

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

658. 新手!谁懂得把下面两个文件转成layaair可以运行的代码 [ 42%]

....TextFormat;     import flash.utils.Timer;       [SWF(width = "1000", height = "618", backgroundColor = "0x0", frameRate = "30")]       public class iLoader extends Sprite     {         public static var PATH:String = "";           public static var VCM:Function;           pu...

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

659. Resources already exist,is repeated loading 加载特效报重复加载 [ 42%]

... this.sp.x = Laya.stage.width / 2;         this.sp.y = Laya.stage.height / 2;     } } 打印的报错: 11111111111 TransformDemo.ts:73 Resources already exist,is repeated loading: D:/myLaya/myLaya/bin/res/threeDimen/particle/2d.lh laya.core.js:16639 [warn]Retry to load: null laya.core...

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

660. TiledMap地图 · LayaAir3.4 · 引擎文档 · LAYABOX [ 41%]

...tangle = new Laya.Rectangle(0, 0, Laya.stage.designWidth, Laya.stage.designHeight); //创建TiledMap地图 this.tMap.createMap("resources/TiledMap/orthogonal.json", viewRect, new Laya.Handler(this, this.completeHandler)); } //添加地图到Scene2D下 private onLoaded(): void { this.tMap.mapSprite()...

来源: Laya3.0_文档 发布时间: 20251010