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

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

181. 设置滤镜(ActionScript-LayaAir基础篇(AS3)-位图) [ 78%]

...Main() { // 不支持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"; Laya.loader.load(ApePath, Handler.create(t...

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

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

...= this._boll1.addComponent(laya.physics.BoxCollider); box.height = 60; box.width = 28; //添加刚体 this._boll1.addComponent(Laya.RigidBody); //创建挡板 this.createPanel(); } private createPanel():void { let panel:Laya.Sprite = new Laya.Sprite(); panel.graphics.drawRect(0,100,100,20,0xffffff);...

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

183. laya.ui.Button [ 78%]

...d-only] 对象的显示高度(以像素单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以像素单位)。 Component filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalScaleX : Number[read-only] 获得相对于stage的全局X轴...

来源: laya_api 发布时间: 20170929

184. 鼠标交互-Hold [ 78%]

...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"; Laya.loader.load(apePath, Handler.create(t...

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

185. 关于环形进度条,进度不能重置问题 [ 78%]

...prite(); this.box.addChild(this.draw); this.draw.graphics.drawPie(this.say.width/2, this.say.height/2, this.say.width/2+9,0,this.angle, "#ffffff"); this.circle = new Sprite(); this.circle.graphics.drawCircle(this.say.width/2, this.say.height/2, this.say.width/2, "#00ffff"); this.circle.blendMode = "...

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

186. laya.ui.Tree_API3.0 [ 78%]

...对象的属性 y 的值,用于控制 tree 对象的显示位置。 tree.width = 200;//设置 tree 的宽度。 tree.height = 100;//设置 tree 的高度。 Laya.stage.addChild(tree);//将 tree 添加到显示列表。 } } } import laya.ui.Box; import laya.ui.Clip; import laya.ui.Label; class Item...

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

187. 什么动画设置大小不统一 [ 78%]

...设置大小不统一 var bounds = ani.getGraphicBounds(); ani.scale(img.width/bounds.width,img.height/bounds.height) 这里我获得动画的边界 获取得到 然后img的宽高都是80 我想设置每个动画宽高都80 这样设置什么不能实现? 2017-06-29 添加评论 免费帖 -...

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

188. textinput(type=password)手机打开华安全键盘后,无法关闭(官网的例子) [ 78%]

...     var WebGL = Laya.WebGL;     var SPACING = 100;     var INPUT_WIDTH = 300;     var INPUT_HEIGHT = 50;     var Y_OFFSET = 50;     var skins;     (function()     {         // 不支持WebGL时自动切换至Canvas         Laya.init(800, 600, WebGL);        ...

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

189. Tree属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 78%]

..."clipY": "3"}}, {"type": "Label", "props": {"y": "1", "text": "treeItem", "width": "150", "left": "33", "height": "22", "name": "label", "color": "#ffff00", "right": "0", "x": "33"}}, {"type": "Clip", "props": {"x": "0", "name": "arrow", "y": "5", "skin": "ui/clip_tree_arrow.png", "clipY": "2"}}], "...

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

190. laya.ui.ComboBox [ 78%]

...d-only] 对象的显示高度(以像素单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以像素单位)。 Component filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalScaleX : Number[read-only] 获得相对于stage的全局X轴...

来源: laya_api 发布时间: 20170929