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

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

1201. Web Storage数据存储(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 65%]

...em("key","hello"); Laya.LocalStorage.setItem("data","hello"); var data = {"index":0,"index1":1}; Laya.LocalStorage.setJSON("item",data);//直接传入Object 接口内部转化为JSON字符串存储 ``` 在chrome中运行之后按快捷键F12,结果如下图所示: ![1](img/1.png) 从图中我们...

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

1202. 问一个关于小游戏加载图片的问题 [ 65%]

...果不是网络问题,去这个网站:https://www.ssllabs.com/ssltest/index.html   输入你的域名,测一下是不是支持TLS。如果不支持。你需要了解,微信小程序与第三方服务器通讯的域名5个必要条件: 1、一个已备案的域名,不是localhost、也...

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

1203. 救命!canvas定位后 点击区域偏移,求大大们解答 [ 65%]

...:30 链接:http://pan.baidu.com/s/1dFF4jxJ 密码:shvj 代码写在bin/index.html页面下,laya的ide打开项目按F5可直接打开页面,右侧选择文件上传一张图片后,图片可点击拖动,拖动区域偏移到图片外的左上角位置。 注释掉bin/index.html 141-143行...

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

1204. 如何实现点击列表时,点击item中的按钮有事件,点击item其他位置没有事件,目前只能实现点击list里的item组件进行事件监听,没办法实现监听item中的button [ 65%]

...该了解了!比如代码 方法一: function renderHandler(item:box,index:int):void { var button:Button = item.getChildByName("buton") as Button;(名字是你在ide里自己设定的) button.on(事件注册) }   方法二: list组件.itemRender  = UI页面 function renderHandler(item:UI页...

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

1205. 自定义组件时,设置组件子节点的image的skin时,路径为layaIde的路径而非项目路径 [ 65%]

...ide protected function createChildren():void { super.createChildren(); var index:Number = getChildIndex(_bg); addChildAt(_progress = new Image(),index + 1); } override protected function changeValue():void{ super.changeValue(); _proMask.scaleX = _value / _max; _proMask.repaint(); console.log("改变...

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

1206. [LayaAir3]laya3引用npm的库有问题 [ 65%]

...,在浏览器环境中不可使用。解决方案(来自网络)是在index.html加入以下语句:<script src="url"></script> <script> window.Buffer = window.buffer.Buffer; </script> 将url替换为 https://bundle.run/buffer@6.0.3当然,js文件也可以自行下载...

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

1207. laya.effect.EffectBase_API3.0 [ 65%]

Search Preparing search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/effect/EffectBase" EffectBase Class EffectBase 效果插件基类,基于对象池管理 Hierarchy Component EffectBase FadeIn Fad...

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

1208. laya.display.FrameAnimation [ 65%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames FrameAnimationProperties | Methods | Events | Constants Packagelaya.displayClasspublic class FrameAnimationInheritanceFrameAnimation AnimationPlayerBase Sprite Node EventDispatcher ObjectSubclasses EffectAnimation 关...

来源: laya_api 发布时间: 20170929

1209. laya.display.EffectAnimation_API3.0 [ 65%]

Search Preparing search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/display/EffectAnimation" EffectAnimation Class EffectAnimation 动效模板。用于为指定目标对象添加动画效果。每...

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

1210. laya.d3.core.scene.bvhscenerendermanager.BVHRenderBox_API3.0 [ 65%]

Search Preparing search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/scene/BVHSceneRenderManager/BVHRenderSpatialBox" BVHRenderBox Class BVHRenderBox<T> Type parameters T Hierarchy BVHSp...

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