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

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

721. laya.d3.core.light.DirectionLight_API3.0 [ 73%]

...s:310 inheritdoc override Parameters Default value destroyChild: boolean = true Returns void destroyChildren destroyChildren(): void Inherited from Node.destroyChildren Defined in laya/display/Node.ts:211 销毁所有子对象,不销毁自己本身。 Returns void event event(type: string, data?: ...

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

722. 加载模型后,无法西方模型暂用的显存? [ 73%]

...容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: destroy(true) 才会销毁子模型,然后clearres 是引用计数清理 2018-11-19 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 百神 相关问题 2.0一不小心...

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

723. laya.events.KeyBoardManager_API3.0 [ 73%]

...es enabled Methods hasKeyDown Properties Static enabled enabled: boolean = true Defined in laya/events/KeyBoardManager.ts:14 是否开启键盘事件,默认为true Methods Static hasKeyDown hasKeyDown(key: number): boolean Defined in laya/events/KeyBoardManager.ts:53 返回指定键是否被按下...

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

724. JS进度条加载问题 [ 73%]

...e5; arr[5] =ape6; arr[6] =ape7; //设置progress Handler的第4个参数为true,根据加载文件个数获取加载进度 Laya.loader.load(arr,null,Laya.Handler.create(this,onProLoaded),null,true,true); } function showProgress() { progressBar=new Laya.Sprite(); progressBar.loadImage("comp/BG1.jpg...

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

725. laya.d3.resource.DataTexture2D [ 73%]

...:ArrayBuffer, w:int, h:int, magfilter:int, minfilter:int, mipmap:Boolean = true):DataTexture2D[static] DataTexture2D  getPixels():Uint8Array 返回图片像素。 DataTexture2D  load(url:String, w:int = 0, h:int = 0, magfilter:int, minfilter:int):DataTexture2D[static] 加载Texture2D。 DataText...

来源: laya_api 发布时间: 20170929

726. [LayaAirIDE 2.0]TextInput真机输入时显示蓝色字,求解 [ 73%]

...ck[3]){ Notice.I.show("确认密码输入有误!"); return false; } return true; } /** * 输入框事件 * @param input TextInput * @param lable Label * @param e Event */ private _onInputEvent(input: Laya.TextInput, lable: Laya.Label, e: string) { switch (e) { case Laya.Event.FOCUS: // input.color =...

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

727. List无法滑动,加了scrollbar也没用. [ 73%]

...scrollbar也没用. List无法滑动,加了scrollbar,touchScrollEnable = true 依然是无法滑动. 还有设置selecteEnable = true后,随便选择一个cell,所有的cell都会被隐藏掉. demo如下.   附件 : --> demo.zip 2019-08-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

728. hitTestPrior无效 [ 73%]

..., this.onImageMouseDown); viewStack.addChild(img);   然而不管设置是true还是false,都是子元素先检测到mousedown事件,请问是不是hitTestPrior无效? 2017-09-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...

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

729. UI-ComboBox [ 73%]

...; function onLoadComplete() { var cb = createComboBox(skin); cb.autoSize = true; cb.pos((Laya.stage.width - cb.width) / 2, 100); cb.autoSize = false; } function createComboBox(skin) { var comboBox = new ComboBox(skin, "item0,item1,item2,item3,item4,item5"); comboBox.labelSize = 30; comboBox.itemSize...

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

730. 文本-位图字体 [ 73%]

...n createText(font) { var txt = new Text(); txt.width = 250; txt.wordWrap = true; txt.text = "Do one thing at a time, and do well."; txt.font = font; txt.leading = 5; txt.pos(Laya.stage.width - txt.width >> 1, Laya.stage.height - txt.height >> 1); Laya.stage.addChild(txt); } })();module laya { import...

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