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

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

401. laya.ui.HBox [ 69%]

...tected Properties Show Inherited Protected Properties PropertyDefined By _anchorX : Number = NaNX锚点,值为0-1,设置anchorX值最终通过pivotX值来改变节点轴心点。UIComponent _anchorY : Number = NaNY锚点,值为0-1,设置anchorY值最终通过pivotY值来改变节点轴心...

来源: Laya2.0_api 发布时间: 20190513

402. 改变画布 样式的 宽高后 鼠标定位问题 [ 69%]

...布是1024 X 650 Laya.init(1024, 650 , WebGL); 我改变 宽度后 Render._mainCanvas.source.style.width = "100%" 自适应外部的DIV 但我画笔的定位 this.stage.mouseX 取不到正确位。这怎么处理?   如图,白色画布是1024 x 650  外层div 是 500 x 500 按照鼠标点下去...

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

403. 版本号:2.0.2 beta, 在sound文件夹下音乐播放不了,放入到res文件夹下可播放 [ 69%]

...es文件夹下可播放   错误提示:Failed to load resource: net::ERR_FILE_NOT_FOUND [file:///F:/GitHub/TS_Laya/TS_MyLaya/bin/sounds/hit.wav]   测试代码:   import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import SoundManager = ...

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

404. 关于graphics._saveToCmd的问题 [ 69%]

关于graphics._saveToCmd的问题 this.sp.graphics._saveToCmd(this.test1,arr);   执行上面代码的代码后,会一直执行this.test1函数,如何让它只执行一次呢? 2017-03-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

405. 为什么laya的Button渲染逻辑顺序是先渲染,再获取素材切片? [ 69%]

...染,再获取素材切片? /** *@private *改变对象的状态。 */ __proto.changeState=function(){ this._stateChanged=false; this.runCallLater(this.changeClips); var index=this._state < this._stateNum ? this._state :this._stateNum-1; this._sources && (this._bitmap.source=this._sour...

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

406. this.bitmap.activeResource is not a function [ 69%]

...s.bitmap.activeResource is not a function //开放域层级 private static _openZone:Laya.Sprite; //开放域纹理 private static _openZoneTexture:Laya.Texture; public static openZone(vx:number=0,vy:number=0,scaleX:number=1,scaleY:number=1) { if(!this._openZone) { //开放域 this._openZone = new L...

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

407. laya.ui.Slider [ 69%]

...tected Properties Show Inherited Protected Properties PropertyDefined By _anchorX : Number = NaNX锚点,值为0-1,设置anchorX值最终通过pivotX值来改变节点轴心点。UIComponent _anchorY : Number = NaNY锚点,值为0-1,设置anchorY值最终通过pivotY值来改变节点轴心...

来源: Laya2.0_api 发布时间: 20190513

408. laya.ui.VSlider [ 69%]

...tected Properties Show Inherited Protected Properties PropertyDefined By _anchorX : Number = NaNX锚点,值为0-1,设置anchorX值最终通过pivotX值来改变节点轴心点。UIComponent _anchorY : Number = NaNY锚点,值为0-1,设置anchorY值最终通过pivotY值来改变节点轴心...

来源: Laya2.0_api 发布时间: 20190513

409. [LayaAir 2.0] 如何用代码为Spirte添加2d物理特性 [ 69%]

...档都是IDE篇的。   class CollisionBoll extends Laya.Sprite { private _boll1:Laya.Sprite; constructor() { super(); //物理模块 this._boll1 = new Laya.Sprite(); this.addChild(this._boll1); this._boll1.x = 20; this._boll1.loadImage('comp/btn_close.png'); let box:laya.physics.BoxCollider = this...

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

410. Spine动画最后一帧无法正常显示 [ 69%]

...播放完后未显示最后一帧画面。经调试后发现在Skeleton::_update方法中的以下语句:var tGraphics; if (this._aniMode == 0) { tGraphics = this._templet.getGrahicsDataWithCache(this._aniClipIndex, this._clipIndex) || this._createGraphics(); if (tGraphics && this.graphics...

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