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

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

3141. 3D骨骼动画卡在某一帧不再执行动作 [ 53%]

... 以下为核心代码:   function playAction(act:string):void {     var animationclip:Laya.AnimationClip = this.animator.getClip(action);     if(animationclip){        this.animator.play(act);    } }   现象描述:角色正在挂机放技能打怪,当挂机时间过长后,角...

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

3142. Laya2自动同步cullingMask方案以及灯光裁剪补丁 [ 53%]

...ullingMask { public static enableLightCullingMask(scene: Laya.Scene3D) { //var proto = Laya.Scene3D.prototype as any; (scene as any).lightCullingMask = function (scene, camera) { //灯光处理开始 麒麟子添加 var allLights = []; allLights = allLights.concat(scene._directionLights._elements); ...

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

3143. 加载html的问题 [ 53%]

加载html的问题 加载html文件: var p = new laya.html.dom.HTMLIframeElement(); Laya.stage.addChild(p); p.width = screenWidth; p.height = screenHeight; p.href = "https://www.baidu.com/index.html"; 这样写怎么报错了:gameThirdScriptError undefined;at api request success callback funct...

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

3144. 设置半透遮罩层后,无法屏蔽穿透点击事件 [ 53%]

...理方式如下: // 绘制遮罩区,含透明度,可见游戏背景 var maskArea: Laya.Sprite = new Laya.Sprite(); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); maskArea.mouseThrough = false; Laya.stage.addChild(maskArea); 2018-09-11 ...

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

3145. 按钮交互实现 [ 53%]

...量名也被实例化 对实例化的按钮变量进行设置点击事件 var gameOver = new GameOverUI(); this.SceneMajor.addChild(gameOver); gameOver.btRetry.on('click', this, function(){ window.location.reload(); });当然因为按钮都是小元素, 默认情况下会被打包成atlas文件 需...

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

3146. 怎么改变弹出的dialog在屏幕中的位置,不让他默认居中 [ 53%]

...内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: public var popupCenter:Boolean = true; false 就根据坐标显示,默认为true 2018-07-16 0 2 分享 微博 QZONE 微信 cheng 赞同来自: dialog 里面有个属性 popupCenter,设置为false,然后设置坐标 2018-07-16 0 0 ...

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

3147. 一行居中的动态文字,怎么设置不同样式。 [ 53%]

...参的方式改变文本html的不同样式 public function setUp():void { var html:HTMLDivElement=new HTMLDivElement(); html.width=500; html.height=500; changeHtml('#0000FF',"哈哈哈哈哈",html); Laya.stage.addChild(html); } private function changeHtml(color:String,text:String,html:HTMLDivElemen...

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

3148. 运动刚体(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 53%]

...=PhysicsWorld_Kinematic)): ```typescript ..... //创建刚体碰撞器 var rigidBody:Laya.Rigidbody3D = sphere.addComponent(Laya.Rigidbody3D); //设置刚体为Kinematic,仅可通过transform属性移动物体 rigidBody.isKinematic = true; ...... //在场景上添加的loop事件 private onKey...

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

3149. 调用时间轴动画丢失皮肤问题? [ 53%]

...eate(this, onLoaded)); function onLoaded() { //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("XXXXX1.ani"); //添加到舞台 Laya.stage.addChild(tl); //播放Animation动画 tl.play(); qian • 2018-03-29 15:51 你传一下demo吧我看...

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

3150. 物理引擎 触发碰撞时 获取碰撞点的方法GetWorldManifolde在onTriggerEnter事件中怎么使用 [ 53%]

...: 与内容相关的链接 提交 1 个回复 心随欲动 赞同来自: var b2WorldManifold : any = new Laya.Browser.window.box2d.b2WorldManifold() ;   contact.GetWorldManifold(b2WorldManifold);   b2WorldManifold.points[0].x , b2WorldManifold.points[0].y 2019-05-05 0 2 分享 微博 QZONE 微信 ...

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