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

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

221. VScrollBar属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 91%]

...ndler = Laya.Handler; var WebGL = Laya.WebGL; /***垂直滚动条资源**/ this.skins = ["res/ui/vscroll.png", "res/ui/vscroll$bar.png", "res/ui/vscroll$down.png", "res/ui/vscroll$up.png"]; // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); //画布垂直居中对齐 Laya.stage.al...

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

222. 要做一个方形倒计时,请问该怎么实现,不知道该怎么做 [ 91%]

...nt; public var isCd:Boolean = false; public function CdSprite() { super(); this.scrollRect = rect; this.alpha = 0.85; } public function setSize(bian:int):void{ r = bian / Math.SQRT2; rect = new Rectangle(0,0,bian,bian); this.scrollRect = rect; pos = bian * 0.5; } public function set360(value:int):vo...

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

223. UI-RadioGroup [ 91%]

...ng", "res/ui/radioButton (3).png"]; Laya.loader.load(skins, Handler.create(this, this.initRadioGroups)); } initRadioGroups() { for (let i = 0; i ; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.AL...

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

224. 分享:DrawToCanvas内存释放问题! [ 91%]

...命令按钮 var btnDraw:Sprite=CreateBtn(100,400); btnDraw.on(Event.CLICK,this,onClickBtnDraw); } //创建按钮 private function CreateBtn(xx:int,yy:int):Sprite { var btn:Sprite=new Sprite(); btn.graphics.drawRect(0,0,200,50,"#FF0000"); btn.pos(100,400); var text:Text=new Text(); text.text="Draw";...

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

225. 多个button如何区分 [ 90%]

...多个button如何区分 通过 for 循环 加入多个button 添加事件 this.emojiBut1.on(Laya.Event.CLICK,this,this.onEmojiBut1Click); 多个button 如何区分 点击的哪一个button  可以设置tag吗 或者通过监听事件透传?   附件 : --> 2017-04-25 添加评论 免费帖 --> ...

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

226. 物理系统之FixedConstraint(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 90%]

...个刚体 ```typescript //创建盒型MeshSprite3D var box: MeshSprite3D = this.scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1))) as MeshSprite3D; //设置材质 var transform: Transform3D = box.transform; var pos: Vector3 = transform.position; pos.setValue(0, 5, 0); transform.posit...

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

227. Sprite3D-Sprite3D克隆 [ 90%]

...../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); //克隆sprite3d var layaMonkey_clone1 = Laya.Sprite3D.instantiate(la...

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

228. 关于UI与3D场景的问题 [ 90%]

... 提交 3 个回复 Laya_Aaron 赞同来自: button.on(Laya.Event.CLICK, this, function(event:Laya.Event){ console.log("点击到了UI"); event.stopPropagation(); }); 完整代码 2018-05-30 0 17 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 你这个问题描述的很明确,很好,这个...

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

229. 提示“AtlasResourceManager:Dispose the inner Atlas。” [ 90%]

...页面奔溃了,卡滞了 代码类似下面这样 Laya.timer.loop(200, this, showframe); function showframe() {     var url = getimage();     this.sp_video.loadImage(url);     }   2017-08-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

230. UI-Tree [ 90%]

... "res/ui/tree/clip_tree_arrow.png" ]; Laya.loader.load(res, Handler.create(this, this.onLoadComplete)); } onLoadComplete() { const Utils = Laya.Utils, Tree = Laya.Tree; // 组装tree的数据 let treeData = ""; for (let i = 0; i "; for (let j = 0; j "; } treeData += ""; } treeData += ""; // 解析tr...

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