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

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

121. Dialog用法——弹出回调 [ 69%]

...量加载json文件,然后等这些文件统一加载完后回调 Laya.Handler.create 加载图片回调参数问题 Dialog限制拖动区域有什么方法 const 用法 能否恢复Animation.getGraphicBounds在1.6时的用法 问题状态 最新活动: 2017-08-14 14:02 浏览: 942 关注: 2 人

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

122. tween如何更改3d物体位置 [ 68%]

...ion;Laya.Tween.to(box.potOld,{     x:1     ,y:2     ,update:new Laya.Handler(box,function(){         this.transform.position = this.potOld;     }) }, ConstValue.animationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){     console.log("complete"); }),ConstValue.animation...

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

123. 设置遮罩(JavaScript-LayaAir基础篇(JS)-位图) [ 68%]

...pt (function() { var Sprite = Laya.Sprite; var Texture = Laya.Texture; var Handler = Laya.Handler; var Res; var img; (function() { Laya.init(1136,640); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" //资源路径 Res = "res/img/monkey1.png"; //先加载图片资源,在图片资源加载...

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

124. 使用百度地图显示当前位置(JavaScript-LayaAir基础篇(JS)-硬件设备相关) [ 68%]

...Geolocation.enableHighAccuracy = true; Laya.Geolocation.watchPosition(Laya.Handler.create(this, updatePosition), Laya.Handler.create(this, onError)); // 绑定作用域 convertToBaiduCoord = convertToBaiduCoord.bind(this); ``` ​ 由于本例不需要使用LayaAir的显示元素,因此舞台尺...

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

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

...import laya.resource.Texture; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class Main { private const ApePath:String = "res/img/monkey1.png"; private var apeTexture:Texture; public function Main() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser....

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

126. socket连接失败但是没有回调 [ 68%]

...前layaair,网页都是正常,构建xcode项目之后连接不上 Laya.Handler.create 加载图片回调参数问题 问题状态 最新活动: 2018-04-17 09:57 浏览: 1144 关注: 3 人

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

127. 请问laya的List除了用selectBox,还有什么方式可以自定义列表项选中状态下的表现吗 [ 68%]

...生List之后,重写changeCellState方法来,并且同时配合renderHandler来实现?   2017-03-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 可以参考下:把img换成你...

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

128. 用LayaAir引擎解析Tiled Map地图(TypeScript-2D进阶篇(TS)-扩展模块) [ 68%]

...pLoaded() this.tMap.createMap("res/TiledMap/orthogonal.json",viewRect,Laya.Handler.create(this,this.onMapLoaded)); } private onMapLoaded():void{ //将原地图放大2倍 this.tMap.scale = 2; } } new GameMain(); ``` 运行效果如图8所示。 ![图8](img/8.png) (图8) #### 2.2.2 设置地图缩放...

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

129. 使用百度地图显示当前位置(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 68%]

...位置 Geolocation.enableHighAccuracy = true; Geolocation.watchPosition(Handler.create(this, updatePosition), Handler.create(this, onError));   // 绑定convertToBaiduCoord作用域 __JS__("this.convertToBaiduCoord = this.convertToBaiduCoord.bind(this)"); } ``` ​ 由于本例不需要使...

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

130. laya.gltf.glTFResource_API3.0 [ 67%]

...Dispatcher registerExtra registerExtra(context: string, extraName: string, handler: Handler): void Defined in laya/gltf/glTFResource.ts:247 注册 extra 处理函数 Parameters context: string extraName: string handler: Handler Returns void unregisterExtra unregisterExtra(context: string, extraName:...

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