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

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

131. Tween回调方法里如何带参数? [ 81%]

...法里如何带参数? Tween.to(sp, {x:_x, y:_y, alpha:1}, 1000, null, Handler.create(This, function(){     sp.destroy(); }), 500); 这样写sp并不能被销毁,请问laya里沒有onCompleteParams方法吗? 2017-06-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

132. 高级应用-渲染纹理 [ 81%]

...ena.ls", "../../res/threeDimen/staticModel/LayaPlane/LayaPlane.lh" ], Laya.Handler.create(this, onComplete)); function onComplete() { setMaterials(scene.getChildByName("scene")); layaPlane.transform.localPosition = new Laya.Vector3(0, 0.5, -1); Laya.loader.load(["../../res/threeDimen/ui/button.png"]...

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

133. Sprite3D-Sprite3D克隆 [ 81%]

...der.create("../../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...

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

134. 缓动 · LayaAir3.0文档 · LAYABOX [ 81%]

...props 变化的属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。 * @param duration 花费的时间,单位毫秒。 * @param ease 缓动类型,默认为匀速运动。 * @param complete 结束回调函数。 * @para...

来源: Laya3.0_文档 发布时间: 20230726

135. Tween的to方法完成缓动后的回调怎么写,Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,aaa,0,false);aaa是一个测试方法 [ 80%]

...接 提交 3 个回复 zhpr613 赞同来自: cuixueying import laya.utils.Handler 是否忘记导包了,我用的as3,导包之后是没有问题的。 2017-05-10 1 0 分享 微博 QZONE 微信 cuixueying 赞同来自: Tween.to(sp,{x:400},1000,null,Handler.create(this,onTweeed)) onTween就是你...

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

136. 获取位置信息 · LayaAir3.0文档 · LAYABOX [ 80%]

...BLE和Geolocation.TIMEOUT之一。 */ static getCurrentPosition(onSuccess: Handler, onError: Handler = null): void { Geolocation.navigator.geolocation.getCurrentPosition(function (pos: any): void { Geolocation.position.setPosition(pos); onSuccess.runWith(Geolocation.position); }, function (error: an...

来源: Laya3.0_文档 发布时间: 20230725

137. 材质-BlinnPhong-高光贴图 [ 80%]

..., -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); var completeHandler = Laya.Handler.create(this, onComplete); Laya.loader.create("../../res/threeDimen/skinModel/dude/dude.lh", completeHandler); function onComplete() { var dude1 = this.scene.addChild(Laya.Sprite3D.load("../../res/threeD...

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

138. TimeLineUI不存在的问题 [ 80%]

...执行onLoaded回调方法 Laya.loader.load("res/atlas/apes.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个UI实例 var plan = new ui.TimeLineUI(); //添加到舞台 Laya.stage.addChild(plan); //播放UI场景中的动画 plan.crashed.play(); }运行时发现ui变...

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

139. 鼠标交互-拖动 [ 80%]

...aya.Rectangle; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var ApePath = "../../res/apes/monkey2.png"; var ape, dragRegion; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, Web...

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

140. 批量销毁释放内存(JavaScript-3D基础(JS)-LayaAir3D的内存管理) [ 80%]

...Laya.Scene3D.load("res/threeDimen/scene/ParticleScene/Example_01.ls", Laya.Handler.create(this, function(scene){ this._scene = Laya.stage.addChildAt(scene, 0); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 1, 0)); camera.addComponent(Camera...

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