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

大约有 1,744 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0057 秒)

281. 其他引擎的Demo-Example_23 [ 69%]

...(tick > frequency) { tick = 0; // iterate through the dudes and update the positions laser = new Sprite(); laser.loadImage("res/pixi/laser0" + ((type % 5) + 1) + ".png"); type++; laser.life = 0; let pos1; let pos2; if (type % 2) { pos1 = new Point(-20, Math.random() * viewHeight); pos2 = new Point(v...

来源: Laya2.0_示例 发布时间: 20251130

282. 以前用lm文件加载模型。现在用lh文件加载模型无法贴图 [ 68%]

...sh.transform.localScale = new Laya.Vector3(0.04,0.04,0.04); fish.transform.position = new Laya.Vector3(0,0.5,0); // fish.transform.position = new Laya.Vector3(0.4,0.5,-0.35); fish.transform.rotate(new Laya.Vector3(0,-Math.PI/2,0)); var anifish = fish.addComponent(Laya.SkinAnimations); anifish.temple...

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

283. PixelLineSprite3D 绘制线段问题 [ 68%]

...个目标OBJ, 首先获得目标的坐标this.objPoint3D= OBJ.transform.position2. 从摄像机(透视)构造一条射线(参考官方3D鼠标点击案例),来得到一个鼠标点击坐标this.originRay = new Laya.Ray(this.sceneCamera.transform.position, new Laya.Vector3(0, 0, 0)) let p...

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

284. 在没有碰撞条件情况下,为何会撞歪物体,导致旋转角度改变? (附源码Laya+Unity) [ 68%]

...ox.getChildAt(0) as Laya.Sprite3D;         asteroidBox.transform.position = new Laya.Vector3(Strong.rangeRandomFloat(-5, 5), 0, 15.4);         //asteroidBox.transform.position = new Laya.Vector3(0, 0, 7);         // asteroid.transform.rotate(new Laya.Vector3( ...

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

285. laya.d3.core.particleshuriken.module.shape.SphereShape_API3.0 [ 68%]

...hell enable radius randomDirection shapeType Methods clone cloneTo generatePositionAndDirection Constructors constructor new SphereShape(): SphereShape Overrides BaseShape.constructor Defined in laya/d3/core/particleShuriKen/module/shape/SphereShape.ts:14 创建一个 SphereShape 实例。 Returns S...

来源: Laya3.0_api 发布时间: 20231115

286. laya.d3.core.particleshuriken.module.shape.HemisphereShape_API3.0 [ 68%]

...hell enable radius randomDirection shapeType Methods clone cloneTo generatePositionAndDirection Constructors constructor new HemisphereShape(): HemisphereShape Overrides BaseShape.constructor Defined in laya/d3/core/particleShuriKen/module/shape/HemisphereShape.ts:15 创建一个 HemisphereShape 实...

来源: Laya3.0_api 发布时间: 20231115

287. timer无法执行 [ 68%]

...mitiveMesh.createSphere(1)); this.scene1.addChild(ball);   ball.transform.position = new Laya.Vector3((Math.random() - 0.5) * 2, 10, 17); //添加刚体   ball.addComponent(Laya.PhysicsCollider); let ballrigid: Laya.Rigidbody3D = ball.addComponent(Laya.Rigidbody3D); ballrigid.colliderShape = new L...

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

288. [layaair 1.0] 如何支持Unity的含有第二套UV的shader [ 68%]

...ompile_fog   #include "UnityCG.cginc"   struct appdata { float4 vertex : POSITION; float2 uv : TEXCOORD0; float2 uv2 : TEXCOORD1; };   struct v2f { float2 uv : TEXCOORD0; float2 uv2 : TEXCOORD1; UNITY_FOG_COORDS(1) float4 vertex : SV_POSITION; };   sampler2D _MainTex; float4 _MainTex_ST;   v2f ...

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

289. laya.d3.core.particleshuriken.module.shape.BoxShape_API3.0 [ 67%]

...rties enable randomDirection shapeType x y z Methods clone cloneTo generatePositionAndDirection Constructors constructor new BoxShape(): BoxShape Overrides BaseShape.constructor Defined in laya/d3/core/particleShuriKen/module/shape/BoxShape.ts:16 创建一个 BoxShape 实例。 Returns BoxShape Prop...

来源: Laya3.0_api 发布时间: 20231115

290. PC端web应用开发,想把生成的canvas放进一个div中并调整在页面上的位置,请给出一个方案。 [ 67%]

... 目前<canvas>标签时laya自动生成的,生成时的css是: position: absolute;  left: 0px;  top: 0px;  background: rgb(255, 255, 255);  transform-origin: 0px 0px 0px;  transform: matrix(0.8, 0, 0, 0.8, 0, 0);   但我想把该canvas放进一个div中,然后把div在页面上...

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