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

大约有 3,244 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0086 秒)

891. iOS平台,WiFi连网正常,4G下经常失败 [ 66%]

...adSync(urlpath + 'update/assetsid.txt?rand=' + Math.random() * Date.now(), false, null)); console.log("assetsid old:" + curassets + " new:" + assetsidStr); if (!assetsidStr) { if (curassets && curassets != "") { if (window["onLayaInitError"]) { isDccOk = false; window["onLayaInitError"]("Upd...

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

892. laya.physics.joint.MotorJoint [ 66%]

...,也是selfBody的目标角度MotorJoint  collideConnected : Boolean = false[首次设置有效]两个刚体是否可以发生碰撞,默认为falseMotorJoint  correctionFactor : NumberselfBody向目标位置移动时的缓动因子,取值0~1,值越大速度越快MotorJoint destroyed : B...

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

893. laya.ui.Tree_API3.0 [ 66%]

...ra Defined in laya/display/Node.ts:56 _ownGraphics _ownGraphics: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:641 _skinBaseUrl _skinBaseUrl: string Inherited from Text._skinBaseUr...

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

894. 照相机-3D空间转2D空间 [ 66%]

...3(0, 0.35, 1)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya.DirectionLight()); Laya.loader.create("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { layaMonkey3...

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

895. 物理(二)(平移,旋转,齿轮)(TypeScript-IDE篇(TS)-使用2d物理系统) [ 66%]

...nected [首次设置有效]两个刚体是否可以发生碰撞,默认为false。 #### 实例演练 一个最基本的平移关节,单独使用是很简单的,拖入一个方块并添加`boxcollider`碰撞体,给他添加平移关节`PrismaticJoint`,在刚体`rigidbody`重力`gravityScale`...

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

896. laya.d3.core.light.SpotLight [ 65%]

...Sprite3D off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String = null):EventDispatcher 从 EventDispatcher 对象中删除指定事件类型的所有侦听器。 EventDispatcher on...

来源: laya_api 发布时间: 20170929

897. laya.d3.core.particleshuriken.ShurikenParticleSystem_API3.0 [ 65%]

...aya/d3/core/GeometryElement.ts:20 autoRandomSeed autoRandomSeed: boolean = false Defined in laya/d3/core/particleShuriKen/ShurikenParticleSystem.ts:310 是否使用随机种子。 dragConstant dragConstant: number = 0 Defined in laya/d3/core/particleShuriKen/ShurikenParticleSystem.ts:242 开始速...

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

898. 灯光-点光 [ 65%]

...(0, 0.7, 1.3)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); //点光源 var pointLight = scene.addChild(new Laya.PointLight()); pointLight.color = new Laya.Vector3(0.1189446, 0.5907708, 0.7352941); pointLight.transform.position = new Laya...

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

899. 物理引擎,刚体施加力效果错误,有人帮忙看下吗 [ 65%]

... Vector3(0, 10, 0)); camera.transform.rotate(new Vector3(-30, 0, 0), true, false);   //添加地板 var floor:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createPlane(10, 2000, 100, 100))) as MeshSprite3D; //给地板添加物理组件 var floorCollicar:PhysicsCollider = floor.addCo...

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

900. laya.ui.CheckBox_API3.0 [ 65%]

...heckBox.clickHandler = new laya.utils.Handler(this,this.onClick,[checkBox],false);//设置 checkBox 的点击事件处理器。 Laya.stage.addChild(checkBox);//将此 checkBox 对象添加到显示列表。 } function onClick(checkBox) { console.log("checkBox.selected = ",checkBox.selected); } examp...

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