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

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

51. laya.d3.math.Native.ConchQuaternion [ 71%]

...0, y:Number = 0, z:Number = 0, w:Number = 1, nativeElements:Float32Array = null) 创建一个 Quaternion 实例。 ConchQuaternion  add(left:*, right:ConchQuaternion, out:ConchQuaternion):void[static] 计算两个四元数的和 ConchQuaternion  clone():* 克隆。 ConchQuaternion  cloneTo(des...

来源: Laya2.0_api 发布时间: 20190513

52. laya.d3.math.Vector4 [ 70%]

...是否相等。 Vector4  forNativeElement(nativeElements:Float32Array = null):voidVector4  fromArray(array:Array, offset:int = 0):void 从Array数组拷贝值。 Vector4  length():Number 求四维向量的长度。 Vector4  lengthSquared():Number 求四维向量长度的平方。 Vector4  ...

来源: Laya2.0_api 发布时间: 20190513

53. 为什么会出现报错 ani not found:ufo1_down [ 70%]

... Laya.loader.load("res/atlas/war.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })(); function onLoaded(){ // 创建一个主角 this.hero = new Role(); // 初始化角色 this.hero.init("hero",0,1,0,30); // 设置射击类型 this.hero.shootType = 1; // 设置主角的位置 this...

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

54. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 70%]

...his._doll_area.h;  this.graphics.drawRect( 0, 0, this.width, this.height, null, "#ff0000", 1);  if( ! DollGunRole._ani_cached ) { DollGunRole._ani_cached = true; Laya.Animation.createFrames( ["ui/gun_box/plane.png"], "demon_fly" ); Laya.Animation.createFrames( ["ui/gun_box/img_target_blank.png", "...

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

55. 照相机-正交相机 [ 69%]

...yaMonkey.transform.position = _translate; Laya.stage.on(Laya.Event.RESIZE, null, function() { camera.convertScreenCoordToOrthographicCoord(pos, _translate); layaMonkey.transform.position = _translate; }); }); class OrthographicCamera { private pos: Laya.Vector3 = new Laya.Vector3(310, 500, 0); priva...

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

56. timer无法执行 [ 69%]

...gMaterial();   Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(layabox: Laya.Texture2D): void{ ball1mat.albedoTexture = layabox; })); //ball1mat.tilingOffset = new Laya.Vector4(10, 10, 0, 0); ball1.meshRenderer.material = ball1mat; //添加刚体 ball1.addComponent(Laya.Ph...

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

57. 【简单跑酷--JS版】---Lv.6 终篇 [ 69%]

...  (function () { /** * 血条 * */ function Hp(type){ //背景 this.bg = null; //进度条 this.bar = null; //最小值 this.MIN_VALUE = 0; //最大值 this.MAX_VALUE = 100; //值 this.value = 100; Hp.__super.call(this); this.init(type); } //能量类型 Hp.HP_TYPE_ENERGY = "hp_type_energy"; //速...

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

58. 为什么会出现报错 ani not found:ufo1_down [ 69%]

... Laya.loader.load("res/atlas/war.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })(); function onLoaded(){ // 创建一个主角 this.hero = new Role(); // 初始化角色 this.hero.init("hero",0,1,0,30); // 设置射击类型 this.hero.shootType = 1; // 设置主角的位置 this...

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

59. 动画不显示 [ 68%]

...;         }         private function loadResourceComplated(e:*=null):void         {             //开始异步加载资源             Laya.loader.load(m_MapImgUrl,Handler.create(this,onLoadMapComplated));             //创建角色帧            ...

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

60. Sprite-旋转缩放 [ 68%]

...Laya.timer.frameLoop(1, this, animate); } private function animate(e:Event=null):void { ape.rotation += 2; //心跳缩放 scaleDelta += 0.02; var scaleValue:Number = Math.sin(scaleDelta); ape.scale(scaleValue, scaleValue); } } }

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