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

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

291. 骨骼动画-多纹理 [ 74%]

...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); mFact...

来源: Laya_示例 发布时间: 20260303

292. TiledMap 45度地图块渲染顺序问题 [ 74%]

...1 0 2 分享 微博 QZONE 微信 cheneboy 赞同来自: 附上JSON跟图{ "height":10,  "infinite":false,  "layers":[         {          "data":[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ...

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

293. 鼠标交互-自定义事件 [ 74%]

...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"; createSprite(); })(); function createSprite() { sp = new Sprite...

来源: Laya_示例 发布时间: 20260303

294. 关于2d内的坐标转换问题 [ 74%]

... 绿色框的坐标 -- 舞台中央坐标(Laya.stage.width*.5,Laya.stage.height*.5) localSp:黑框容器对象 直接带入上面方法即可,中央的坐标你只知道相对于绿色框的坐标,则需要转换一下,很简单: globalPoint = greenBox.localToGlobal(new Laya.Point(x,y));...

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

295. 骨骼动画-藤蔓 [ 74%]

...inIndex = 0; var mFactory2; (function() { Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.bgColor = "#ffffff"; Stat.show(); startFun(); })(); function startFun() { mAniPath = "../../res/spine/spineRes5/vine.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); m...

来源: Laya_示例 发布时间: 20260303

296. laya.ui.List [ 74%]

...e : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Component filters : Array滤镜集合。可以设置多...

来源: laya_api 发布时间: 20170929

297. 请问老师为什么我按照官网的实例播放音频没反应呢? [ 74%]

...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"; setup(); })(); function setup() { var gap = 10; //创建一个S...

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

298. ComboBox显示问题 [ 74%]

...iew:Object = {"type": "View", "props": {"x": "0", "y": "0", "width": 388, "height": 376}, "child": [{"type": "ComboBox", "props": {"var": "combox", "stateNum": "1", "x": 7, "y": 146, "width": 91, "height": 23, "skin": "MainHead/combobox1.png", "labels": "hihihi,hihihi2,hihihi2"}}]}; override protect...

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

299. 骨骼动画-橡胶人 [ 74%]

...inIndex = 0; var mFactory2; (function() { Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.bgColor = "#ffffff"; Stat.show(); startFun(); })(); function startFun() { mAniPath = "../../res/spine/spineRes4/stretchyman.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseCompl...

来源: Laya_示例 发布时间: 20260303

300. laya.ui.Slider_API3.0 [ 74%]

...rior isVertical 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 displayed...

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