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

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

771. 请问在HTMLDivElement中onclick属性应当怎么用呢? [ 57%]

...LDivElement中onclick属性应当怎么用呢? <img src="30.png" style="width:100;height:100" onclick="this.style.display='none';" />   例如如上代码,有onclick属性,但是具体如何使用呢? 2017-03-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

772. 区块地图增加对象 [ 57%]

...("tiledMap/orthogonal-test-movelayer.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(this,onLoaded)); } private function onLoaded():void { var sp:Sprite=new Sprite(); sp.loadImage('bg.png'); Laya.stage.addChild(sp); }在地图加载完成的回调里去加新的显示...

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

773. lose skin null [ 57%]

...nt of null的问题 跳转场景后laya.core.js就报Cannot read property 'width' of null的错误 TypeError: Cannot read property 'length' of null [Error] TypeError: null is not an object (evaluating 'this._style._tf') 这个怎么办 laya.core.js:16463 Uncaught TypeError: Cannot read property '_tf...

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

774. laya.display.EffectAnimation_API3.0 [ 57%]

...INGPONG WRAP_POSITIVE WRAP_REVERSE drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components count customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize effectClass effectData filters globalRotatio...

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

775. laya.ui.RadioGroup_API3.0 [ 57%]

...ouseThrough name selectHandler tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgColor blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed direction disabled displayHeight displayWidth displayedInStage drawCa...

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

776. HTMLDivElement中image标签多次赋值报错 [ 57%]

...tion() { // 不支持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() { createPa...

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

777. 使用对象池重复使用skeleton报错,请问有解决方案吗?谢谢 [ 57%]

...e; var mCurrSkinIndex = 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, parseComplet...

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

778. laya.ui.ComboBox_API3.0 [ 57%]

...r itemRender mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode bottom button cacheAs centerX centerY components customRenderEnable dataSource defaultLabel destroyed disabled displayHeight displayWidth displayedInStage draw...

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

779. Texture2D.setPixels会导致图片质量变差了,获取原生的pixels没有进行改动。怎么回事呢? [ 57%]

...Obj = this; var onload=function (){ var tex=new Laya.Texture2D(imageSource.width,imageSource.height,1,false,true); tex.wrapModeU=1; tex.wrapModeV=1; tex.loadImageSource(imageSource,true); tex._setCreateURL(url); var tex2=new Laya.Texture(tex); tex2.url=url;   var image:Laya.Image = new Laya.Image()...

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

780. 能不能添加一个控件可以让文字和组件实现弹性滚动啊 [ 57%]

...l; var Text = Laya.Text; var text = new Text(); text.wordWrap = true; text.width = 100; text.text = '哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈...

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