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

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

651. Laya.loader.load 教程代码出错 [ 63%]

...img.graphics.drawTexture(txture);             img.size(txture.width,txture.height);         }            } }    运行后在 LayaSample.max.js 692行提示异常if (!tex.loaded){ tex.once("loaded",this,this._textureLoaded,[tex,args]);  编辑了好几次,这个代...

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

652. laya.ui.HSlider_API3.0 [ 63%]

...al mouseThrough name showLabel tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy allowClickBack alpha anchorX anchorY bar blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawC...

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

653. laya.ui.VSlider_API3.0 [ 63%]

...al mouseThrough name showLabel tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy allowClickBack alpha anchorX anchorY bar blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawC...

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

654. 我自己绘制的矩形如何以自身中心点旋转不能实现啊 [ 63%]

...; public class HelloLaya { public function HelloLaya() { Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.bgColor="#eeffcc"; var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,200,300,"#000fff"); Laya.stage.addChild(sp); sp.size(200,300); sp.pivot(sp.width/2,sp.height/2); sp.pos(200,200)...

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

655. Laya.Rectangle 限制拖动的区域的参数是怎么计算的,相对于什么呢 [ 63%]

... 确定)以及宽度和高度定义的区域。 Rectangle 类的 x、y、width 和 height 属性相互独立;更改一个属性的值不会影响其他属性。    你问的问题我看的不是很懂。 2018-05-30 0 0 分享 微博 QZONE 微信 W 赞同来自: 我想让这个区域就是舞...

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

656. laya.ui.DialogManager_API3.0 [ 63%]

...hrough name popupEffectHandler tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY g...

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

657. 图片居中的问题 [ 63%]

...:   请设置图片的中心点pivotX和pivotY为中心位置,即image.width/2,image.height/2,image的宽高需要自己手动设置或者通过getBounds获取。 2016-11-18 0 0 分享 微博 QZONE 微信 shaouXie 赞同来自: var bg = new Laya.Sprite(); bg.loadImage("res/bg-480x720.jpg"); L...

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

658. 写消消乐游戏, 如何在tiledMap格子中添加精灵? [ 63%]

...ew Laya.TiledMap(); var viewRect = new Laya.Rectangle(-50,-50,Laya.Browser.width,Laya.Browser.height); this.tMap.createMap("res/map/map.json",viewRect); // 精灵 var sp = new Laya.Sprite(); sp.graphics.drawRect(0, 0, 100, 100, "#FF0000", "#0000FF", 1) sp.zOrder = 1000;     请问这里如何把...

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

659. 内嵌模式创建scene,运行时报找不到json文件 [ 63%]

...elloUI extends Scene { public static uiView:any ={"type":"Scene","props":{"width":640,"height":1136},"compId":2,"child":[{"type":"Label","props":{"y":64,"x":214.5,"width":211,"text":"label","styleSkin":"comp/label.png","height":67},"compId":3}],"loadList":["comp/label.png"],"loadList3D":[]}; constru...

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

660. laya.ui.ColorPicker_API3.0 [ 63%]

...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