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

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

501. 关于下拉列表的选择触发 [ 76%]

...nSelect_small(e) { Laya.big_switch = 0 Laya.maptype = "small" this.now_map.text = "当前地图:" + this.small_map.selectedLabel Laya.map_small_c = e } function onSelect_big(e) { if (e != 0) { if (Laya.keys > 0) { Laya.big_switch = 0 Laya.map_big = e Laya.maptype = "big" this.small_map.selected...

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

502. dialog的popup方法不会关闭其他弹窗 [ 76%]

...> { this.showDialog("注册功能暂未开放") });  }  showDialog(context: string) { // if (this.normalDialog) { // this.normalDialog.close(); // } this.normalDialog = new NormalDialog(context); this.normalDialog.popup(true, true); Laya.stage.addChild(this.normalDialog);  }  }     // 弹...

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

503. laya.net.HttpRequest_API3.0 [ 76%]

...url: string, data?: any, method?: "get" | "post" | "head", responseType?: "text" | "json" | "xml" | "arraybuffer", headers?: string[]): void Defined in laya/net/HttpRequest.ts:46 发送 HTTP 请求。 Parameters url: string 请求的地址。大多数浏览器实施了一个同源安全策略,并...

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

504. 为什么这个ui中给这个TextInput组件runtime属性绑定了一个类 [ 76%]

为什么这个ui中给这个TextInput组件runtime属性绑定了一个类 绑定了这个类后, class TextInputEx extends Laya.TextInput constructor() { console.log("执行了"); super() ; } // 获取焦点 onFocus() : void { console.log("焦点进入"); // 是否缓存初始的文本提示字...

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

505. Laya3D 中如何解决3D模型上添加文本的问题,类似Unity中的3DText [ 76%]

...aya3D 中如何解决3D模型上添加文本的问题,类似Unity中的3DText 2018-08-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: 1种是准备有文字的贴图,贴上去, 2...

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

506. laya.display.Graphics [ 76%]

...h:Number = 1):DrawCurvesCmd 绘制一系列曲线。 Graphics  drawImage(texture:Texture, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0):DrawImageCmd 绘制单独图片 Graphics  drawLine(fromX:Number, fromY:Number, toX:Number, toY:Number, lineColor:String, lineWidth:Number = 1...

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

507. 关于使用CryptoJS加解密的问题。 [ 76%]

...语句:       <!--用于加解密-->     <script type="text/javascript" src="thirdlibs/components/core-min.js"></script>     <script type="text/javascript" src="thirdlibs/rollups/rc4.js"></script>     <script type="text/javascript" src="thirdlibs/rollu...

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

508. 音频-播放演示 [ 76%]

...; musicButton.on(Event.CLICK, this, this.onPlayMusic); } createButton(labelText) { let w = 110, h = 40; const Sprite = Laya.Sprite; let btn = new Sprite(); Laya.stage.addChild(btn); btn.size(w, h); btn.graphics.drawRect(0, 0, w, h, "#FF7F50"); btn.graphics.fillText(labelText, w / 2, 8, "24px SimHei"...

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

509. 自定义对话框设置zOrder后,关闭时报错 [ 76%]

...a.stage.addChild(this); this.zOrder = 100; this.count = 4; this.countLabel.text = '' + this.count; Laya.timer.loop(1000, this, this.countdown); } Laya.class(countdownBar, "CountdownBar", CountdownUI); return countdownBar; }()); CountdownBar.prototype.countdown = function () { this.count--; if (this....

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

510. android旋转屏幕 半边黑屏 [ 76%]

...ertical"; Laya.stage.scaleMode = Stage.SCALE_FULL; spr = new Sprite var te:Text = new Text(); te.fontSize = 50; te.text = "内容测试"; spr.addChild(te); Laya.stage.addChild(spr); Laya.stage.on(Event.CLICK, this, function():void { if (Laya.stage.screenMode == Stage.SCREEN_HORIZONTAL) { if (Browser...

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