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

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

621. 想用camera做一个类似照相机的功能 [ 66%]

...etCamera.renderTarget = new RenderTexture(Laya.stage.width, Laya.stage.height);             //渲染顺序             this.renderTargetCamera.renderingOrder = -1;             //清除标记             this.renderTargetCamera.clearFlag = BaseC...

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

622. graphics怎么画透明色 [ 66%]

...(); graphics.alpha(0.6); graphics.drawRect(0,0,Laya.stage.width,Laya.stage.height,'#000000'); graphics.restore(); sprite.graphics=graphics; 2018-12-19 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 dz5566 相关问题 iphoneX环境下新...

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

623. laya.ui.Slider_API3.0 [ 66%]

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

624. runTime使用(JavaScript-IDE篇(JS)-组件化开发相关) [ 66%]

...化引擎 if (window["Laya3D"]) Laya3D.init(GameConfig.width, GameConfig.height); else Laya.init(GameConfig.width, GameConfig.height, Laya["WebGL"]); Laya["Physics"] && Laya["Physics"].enable(); Laya["DebugPanel"] && Laya["DebugPanel"].enable(); Laya.stage.scaleMode = GameConfig.scaleMode; Laya.stag...

来源: Laya2.0_文档 发布时间: 20210715

625. 2D性能优化 · LayaAir3.0文档 · LAYABOX [ 66%]

...png",0,0,0,0,Laya.Handler.create(this,function() { console.log(sp.width,sp.height); })); Laya.stage.addChild(sp); loadImage在加载完成的回调函数触发之后才可以正确获取宽高。 直接调用size设置: Laya.loader.load("res/apes/monkey2.png",Laya.Handler.create(this,function() { ...

来源: Laya3.0_文档 发布时间: 20231008

626. laya.display.Text [ 66%]

...e : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array...

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

627. 关于微信小游戏的开放数据域,请问如何将开放数据域的canvas绘制到layaair的image上? [ 66%]

... 。。 赞同来自: sharedCanvas.width = width*pixelRatio; sharedCanvas.height = height*pixelRatio; sendMessage({ mission: Mission.RESIZE, width:width, height: height });  wx.onTouchStart(onTouchStart); wx.onTouchMove(onTouchMove); wx.onTouchEnd(onTouchEnd); wx.onTouchCancel(onTouchCancel);  var...

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

628. 动画-旧版骨骼动画 [ 66%]

... - this.changeActionButton.width * Laya.Browser.pixelRatio / 2, Laya.stage.height - 100 * Laya.Browser.pixelRatio); this.changeActionButton.on(Laya.Event.CLICK, this, function (): void { this.playSkinAnimation(this.zombie, ++this.curStateIndex % this.skinAniUrl.length); }); })); } } new SkinAnimatio...

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

629. 如何获得特效的宽高 [ 66%]

... var bounds = ani.getGraphicBounds(); ani.scale(80/bounds.width ,80/bounds.height) 我想把特效设置为宽高都为80 80的 但是getGraphicBounds(); 有的特效获取出来的width和height 都为0 2017-06-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

630. 如何实现聊天图文混排的聊天 气泡背景效果? [ 65%]

...    <div style="background:url(Face/img_duihua_qipao_green_02.png); height:100%; min-height:44px; width:400px;         border-top-left-radius:20px;         border-bottom-right-radius:20px;         border-bottom-left-radius:20px;         ">         <span styl...

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