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

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

931. laya里的所有单例都没有初始值 [ 67%]

...          if (window["Laya3D"]) window["Laya3D"].init(GameConfig.width, GameConfig.height);             else Laya.init(GameConfig.width, GameConfig.height, Laya["WebGL"]);             trace("Laya.stage",Laya.stage,"Laya.timer",Laya.timer,"Laya.loader",Laya.loader) ...

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

932. worker.js 使用问题 [ 67%]

...bGL){             /*__JS__ */bitmap=HTMLImage.create(imageData.width,imageData.height,1);             /*__JS__ */bitmap.loadImageSource(imageData);             /*__JS__ */bitmap._setCreateURL(data.url);         } else {             bitmap = new...

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

933. 升级到2.0后.原本用字符串索引module内的函数,发现不行了, 求指教 [ 67%]

...的如下代码能解决,  if (window["Laya3D"]) Laya3D.init(GameConfig.width, GameConfig.height);         else Laya.init(GameConfig.width, GameConfig.height, Laya["WebGL"]);         Laya["Physics"] && Laya["Physics"].enable();         Laya["DebugPanel"] && L...

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

934. laya.ui.Tree_API3.0 [ 67%]

...对象的属性 y 的值,用于控制 tree 对象的显示位置。 tree.width = 200;//设置 tree 的宽度。 tree.height = 100;//设置 tree 的高度。 Laya.stage.addChild(tree);//将 tree 添加到显示列表。 } } } import laya.ui.Box; import laya.ui.Clip; import laya.ui.Label; class Item...

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

935. laya.ui.Component [ 67%]

...only] 对象的显示高度(以像素为单位)。 Component  displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Component filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalScaleX : Number[read-only] 获得相对于stage的全局X轴...

来源: laya_api 发布时间: 20170929

936. 更新到1.7.6beta之后,HBox有bug [ 67%]

...laya.display.Sprite(); var img: laya.ui.Image = new laya.ui.Image(skin); s.width = img.width; s.height = img.height; s.addChild(img); hbox.addChild(s); } Laya.stage.addChild(hbox); } 2017-06-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, ...

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

937. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 67%]

...被触发 //设置背景图片 this.bgimg = new Laya.Sprite(); this.bgimg.width=2*scronw; this.bgimg.height=2*scronh; //加载显示图片,坐标位于0,0 var temptexture=Loader.getRes(pic); if (typeof(temptexture)!="undefined"){ this.bgimg.texture=Loader.getRes(pic) }else{ this.bgimg.loadImage(pi...

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

938. 2D物理-碰撞过滤器 [ 66%]

...0,200,100,600,1100,600,1100,200"; } private function createBox(posx, posy, width, height, ratio) { var box = new Sprite(); box.on(Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.addChild(box); box.pos(posx, posy).size(width * ratio, height * ratio); var rigidbody: RigidBody = box.addComponent(Ri...

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

939. laya.ui.ColorPicker_API3.0 [ 66%]

...hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgColor blendMode borderColor bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage draw...

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

940. laya.utils.Browser_API3.0 [ 66%]

...Storage supportWebAudio userAgent Accessors _isMiniGame clientHeight clientWidth container document height pixelRatio width window Methods createElement getElementById getQueryString now removeElement Properties Static PLATFORM_ANDROID PLATFORM_ANDROID: number = 1 Defined in laya/utils/Browser.ts:71...

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