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

大约有 901 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0055 秒)

261. 骨骼动画-藤蔓 [ 78%]

...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_示例 发布时间: 20240930

262. viewportPointToRay产生的射线始终有偏差,是为什么? [ 78%]

... ratioX = (input.x / Laya.stage.width); let ratioY = (input.y / Laya.stage.height); let clientWidth = Laya.stage.clientScaleX * Laya.stage.width let clientHeight = Laya.stage.clientScaleY * Laya.stage.height   // let singleX = (Laya.Browser.width - clientWidth)/2; // let singleY = (Laya.Browser.hei...

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

263. UI-List [ 78%]

...t.repeatY = 4; list.x = (Laya.stage.width - WID) / 2; list.y = (Laya.stage.height - HEI * list.repeatY) / 2; // 使用但隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = true; list.selectHandler = new Handler(this, this.onSelect); list.renderHandler = new Handler(this, this.updateItem);...

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

264. 骨骼动画-橡胶人 [ 78%]

...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_示例 发布时间: 20240930

265. view和panel关于mouseThrough的区别 [ 78%]

...   * <p>影响对象鼠标事件响应区域的属性为:width、height、hitArea,优先级顺序为:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。</p>          * @default false    不可穿透,此对象的鼠标响应区域由width、height、hitAr...

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

266. UI-List [ 78%]

...t.repeatY = 4; list.x = (Laya.stage.width - WID) / 2; list.y = (Laya.stage.height - HEI * list.repeatY) / 2; // 使用但隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = true; list.selectHandler = new Handler(this, onSelect); list.renderHandler = new Handler(this, updateItem); Laya.stag...

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

267. 关于适配noborder模式(个人适配分享及建议) [ 78%]

... 如下 AppConfig.viewRect = {};var divWidth = window.innerWidth; var divHeight = window.innerHeight; var devicePixelRatio = Laya.Browser.pixelRatio; var divH = divHeight * devicePixelRatio; var divW = divWidth * devicePixelRatio; var desH = Laya.stage.height; var desW = Laya.stage.width; //设备...

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

268. dialog的lock属性没出现 [ 78%]

...ogCenterClose { private const DIALOG_WIDTH:int = 220; private const DIALOG_HEIGHT:int = 275; private const CLOSE_BTN_WIDTH:int = 43; private const CLOSE_BTN_PADDING:int = 5; private var assets:Array; public function DialogCenterClose() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, ...

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

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

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

270. 为何对sp的监听事件没有反应呢? [ 78%]

...ed = true; xxx.x = (Laya.stage.width - xxx.width) / 2; xxx.y = (Laya.stage.height - xxx.height) / 2; Laya.stage.addChild(xxx); xxx.on(Laya.Event.CLICK, this, this.onXXX); private onXXX() {    console.debug("Hello"); } 2017-06-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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