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

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

1681. 3D灯光与阴影 · LayaAir3.3 · 引擎文档 · LAYABOX [ 40%]

... 1); //设置点光源的范围 pointCom.range = 3.0; pointLight.transform.position = new Laya.Vector3(0.0, 1, 0.0); 三、DirectionLight Direction Light(平行光)与点光区别较大,它有固定的一个方向,可通过弧度值设定,并且也没有衰减和光照范围,会对全场...

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

1682. laya.d3.math.Matrix4x4_API3.0 [ 40%]

...r identity invert isIdentity normalize setElementByRowColumn setForward setPosition setRotation setTranslationVector transpose billboard createAffineTransformation createFromQuaternion createLookAt createOrthoOffCenter createPerspective createPerspectiveOffCenter createRotationAxis createRotationQua...

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

1683. texture2D的setPixel纹理rgba数据之后会随着窗口的缩放,渐变成黑色 [ 40%]

...veMesh.createPlane())) as Laya.MeshSprite3D; this.box = box; box.transform.position = new Laya.Vector3(0.0, 0.0, 0); box.transform.rotate(new Laya.Vector3(90, 0, 0), false, false); Laya.loader.load(this.AllPng,new Laya.Handler(this,this.onCallBack),null,Laya.Loader.BUFFER); Laya.stage.on(Laya.Event....

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

1684. laya.display.AnimationBase_API3.0 [ 39%]

...toSize hitTestPrior loop mouseThrough name tag wrapMode WRAP_PINGPONG WRAP_POSITIVE WRAP_REVERSE drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components count customRenderEnable destroyed displayHeight displayWidth displayedInStage...

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

1685. 同时使用雾和粒子系统,粒子的颜色变成雾的颜色 [ 39%]

...ERMODE_MESH  varying vec4 v_MeshColor; #endif #ifdef FOG  varying vec3 v_PositionWorld;  uniform vec3 u_CameraPosition;  uniform float u_FogStart;  uniform float u_FogRange;  #ifdef ADDTIVEFOG  #else  uniform vec3 u_FogColor;  #endif #endif void main() {   #ifdef RENDERMODE_MESH   gl_Fr...

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

1686. 【分享】通过命令行调用compile.js编译,不使用laya-cmd [ 39%]

...传 Demo 附件 sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale 分享:自定义事件派发与侦听(A页面派发 B页面侦听) 请问在layaIDE里,怎么调用微信小程序API 微信小游戏:HTMLDivElement的使用 Laya中的宏编译要怎么用啊 分...

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

1687. 碰撞检测 outHitInfo.distance 一直等于 -1 ?(TS代码) [ 39%]

...据角色位置计算射线原点 Laya.Vector3.add(ownerSprite3D.transform.position,new Laya.Vector3(speedX,2,speedZ),rayOrigin); //射线原点位置更新 this.ray.origin = rayOrigin; //物理射线与碰撞器相交检测 Laya.Physics.rayCast(this.ray,this.outHitInfo,5); //-----------------------...

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

1688. laya.display.Animation_API3.0 [ 39%]

...toSize hitTestPrior loop mouseThrough name tag wrapMode WRAP_PINGPONG WRAP_POSITIVE WRAP_REVERSE drawtocanvCtx framesMap Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY autoPlay blendMode cacheAs components count customRenderEnable destroyed displayHeight displayWid...

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

1689. Laya中的宏编译要怎么用啊 [ 38%]

... byteArray:ByteArray = new ByteArray(); byteArray.writeInt(100); byteArray.position = 0; var value:int; /*[IF-FLASH]*/value = byteArray.readUnsignedInt(); //[IF-SCRIPT]value = byteArray.readInt(); }单行宏用法说明     1、AS3项目中 value = byteArray.readUnsignedInt(); 被正常执行,...

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

1690. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 37%]

...l.lh"); this.scene.addChild(this.role); //角色位置 this.role.transform.position = new Laya.Vector3(0,1,2); } } new LayaAir3D();   但发布到微信工具运行失败,提示错误如下:Wechat Lib:1.8.0, 2017.12.22 16:03:55 code.js:104 Warning!,this class[MiniAdpter] already exist: Object c...

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