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

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

331. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 53%]

...的距离进行旋转                 (this.owner as Laya.Sprite3D).transform.rotate(new Laya.Vector3(1 * deltaY /2, 1 * deltaX / 2, 0), true, false);             }         }         else if (2 === touchCount){             this._text.text = "...

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

332. TimeLine.addLabel(label:String, offset:Number):TimeLine 亲测! 方法中第二个参数offset无效 [ 52%]

...序入口 class GameMain{ constructor() { Laya.init(600,400); var sp:Laya.Sprite = new Laya.Sprite(); sp.graphics.drawRect(0,0,50,50,"#ff8822"); Laya.stage.addChild(sp); var delay:number = 5000; var timeLine:Laya.TimeLine = new Laya.TimeLine(); timeLine.addLabel("0",delay).to(sp,{x:550},500,null,0);...

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

333. 使用3D摄像机 · LayaAir3.0文档 · LAYABOX [ 52%]

...default class CameraControll extends Laya.Script { @property( { type: Laya.Sprite3D } ) public target: Laya.Sprite3D; private camera: Laya.Camera; public distanceUp: number = 0.5;//相机与目标的竖直高度参数 public distanceAway: number = 10;//相机与目标的水平距离参数 public smo...

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

334. HTMLDIVElement设置innerHTML时报错 [ 52%]

...被锁定, 无法添加新回复 发起人 kite 相关问题 如何设置Sprite的宽高和点击区域? 使用钢体设置防穿后仍有几率会穿透 IDE通过.ui自动生成的ui代码报错 启动引擎报错 mPlugin.game_plugin_init(3); Laya3D里的material可以设置flat shading么 anchor...

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

335. discard property,please use transform's property instead [ 52%]

... function onComplete() {             var grid = scene.addChild(Laya.Sprite3D.load("res/plane.lh"));             //地面接收阴影             grid.getChildAt(0).meshRender.receiveShadow = true;             var layaMonkey = scene.addChild(Laya.Sprite3D.load("res/LayaMonkey....

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

336. 【分享】Laya As3 Tween类的loop实现和3d简单缓动实现 [ 52%]

...关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale 分享:自定义事件派发与侦听(A页面派发 B页面侦听) 分享:适配LayaAir版本的PureMVC框架 分享:打地鼠 AS、JS、TS...

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

337. Unity导出场景,然后在Laya看效果,摄像机的参数我直接拿Unity调整过后的效果值在Laya效果视角非常不理想,我后续截屏在留言,各位大神支招 [ 51%]

...请问有知道是什么原因的吗?~~~~~~~~~~~~~ 关于遍历产生的sprite的点击事件,急,大神帮看哈 laya2.0加载3d场景报错Uncaught TypeError: Cannot read property 'btCollisionObject' of undefined 刮刮卡效果实现 unity 粒子特效 laya插件有问题? Tween没效果...

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

338. 分享一个自己做的游戏公告功能,跑马灯效果 [ 51%]

...port Image = Laya.Image import HTMLDivElement = Laya.HTMLDivElement import Sprite = Laya.Sprite import Box = Laya.Box /** 公告栏 */ export default class Notice extends View { /** 滚动区域 */ hornBox: Box /** html对象 */ html: HTMLDivElement /** 滚动框的宽度 */ defaultX = 1110 /** 动...

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

339. 微信小游戏wxmin图片加载有点问题 [ 51%]

...or3(1, -1, -1); Laya.Stat.show(0,30) var box = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(0.5, 0.5, 0.5))); console.log(3) var boxMat = new Laya.StandardMaterial(); boxMat.diffuseTexture = Laya.Texture2D.load("https://s2.d2scdn.com/2018/1/2 ... 6quot;); box.meshRender.material = boxMat; /...

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

340. Resources already exist,is repeated loading 加载特效报重复加载 [ 51%]

...eValue:number = 0;              private layaMonkey_clone1:Laya.Sprite3D;     private layaMonkey_clone2:Laya.Sprite3D;     private layaMonkey_clone3:Laya.Sprite3D;      private clone1Transform:Laya.Transform3D;     private clone2Transform:Laya.Transform3D;     private...

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