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

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

3921. LayaAir 2.0 TS版编译出错GameConfig跟创建项目时生成的内容不一致了 [ 45%]

...建项目时生成的内容不一致了 这是创建项目时的内容/**This class is automatically generated by LayaAirIDE, please do not make any modifications. */ import GameUI from "./script/GameUI" import GameControl from "./script/GameControl" import Bullet from "./script/Bullet" import DropB...

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

3922. 多摄像机窗口的使用(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 45%]

...赋值。 > 动态修改摄影机视口 ```typescript Laya.timer.once(3000,this,function ():void { //获取第一个摄影的视口 var viewport1:Laya.Viewport = camera1.normalizedViewport; //修改参数 viewport1.width = 0.2; //重新赋值是视口 camera1.normalizedViewport = viewport1; var view...

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

3923. 使用UrlLoader加载图片,flash获取data为byteArray,翻译成h5后data为image? [ 45%]

...Loader; public function UrlImage() { super(); if(stage) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=null):void { urlLoader=new URLLoader(); urlLoader.dataFormat=URLLoaderDataFormat.BINARY; urlLoader.addEventListener(Event.COMPLETE,onImageLoa...

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

3924. Sprite3D添加组件或脚本(ActionScript-3D基础(AS3)-LayaAir3D之精灵) [ 45%]

...el/LayaMonkey/LayaMonkey.lh"]; Laya.loader.create(resource, Handler.create(this, onComplete)); } private function onComplete():void { //记载场景 var scene:Scene3D = Laya.stage.addChild(new Scene3D()) as Scene3D; //加载相机 var camera:Camera = scene.addChild(new Camera(0, 0.1, 100)) as Camera...

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

3925. 模型的功能介绍(ActionScript-3D基础(AS3)-LayaAir3D之模型和网格) [ 45%]

... //.............按钮点击事件 监听 changeMeshButton.on(Event.CLICK, this, function():void{ index++; if (index % 5 === 1 ){ //切换mesh sphere.meshFilter.sharedMesh = box; } else if (index % 5 === 2){ //切换mesh sphere.meshFilter.sharedMesh = capsule; } else if(index % 5 === 3){ //切换mes...

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

3926. 加载SPINE骨骼动画资源无法为png指定版本号 [ 45%]

...码如下 var templet:Templet= new Templet(); templet.on(Event.COMPLETE, this, loadPlaneSkComplete); templet.loadAni("a.sk?v=1"); 出现的问题: 加载a.sk?v=1这个文件后,底层自动加载a.png 在chrome的开发者工具中看到,这个a.png是没有版本号的   2018-04-04 0 0 分...

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

3927. 关于Laya.Quaternion.createFromAxisAngle旋转角度不正确的问题 [ 45%]

...        var dir2=new Laya.Vector3(1,0,0)         var angle=this.Angle(dir1,dir2)                  //向量法线         var normal=new Laya.Vector3();         Laya.Vector3.cross(dir1,dir2,normal)          //围绕法线,把其中一个向量...

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

3928. 我用matter.js渲染一个篮球, 但是不会自动旋转.. 这个怎么设置呢? [ 45%]

...ketball.png"); ball_skin.pivot(ball_skin.width / 2, ball_skin.height / 2); this.ball = Matter.Bodies.circle(0, -100, 34, {     layaSprite: ball_skin, // 绑定一个laya的Sprite, 不能用render.sprite     density: 1, // 密度     restitution: 0.85 // 弹性 });   2017-07-04 添加评论 ...

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

3929. 在加载3d人物的时候,Laya.timer.loop会卡顿,由于又需要每隔一段时间执行一个方法,暂时想到了用Laya.timer.loop,这个有什么好的解决方案替代吗? [ 45%]

...帧(单位为帧)。          * @param    caller    执行域(this)。          * @param    method    定时器回调函数。          * @param    args    回调参数。          * @param    coverBefore    是否覆盖之前的延迟执行,默认...

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

3930. 纹理集包含多个动作的时候按照技术文档写出来的不能正常播放呢? [ 45%]

...function init():void { Laya.loader.load("../res/zy/zy.json",Handler.create(this,onLoadedSource),null,Loader.ATLAS); } private function onLoadedSource():void { roleAni = new Animation(); playActions(); }   2、你打包图集的时候,.json文件的prefix键是没有值的,这个是因为你直...

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