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

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

431. 如何为灯光添加阴影(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 47%]

...D = this.addPBRSphere(PrimitiveMesh.createSphere(0.1), new Vector3(0, 0.2, 0.5), scene); sphereSprite.meshRenderer.castShadow = true; sphereSprite.meshRenderer.receiveShadow = true; ``` 然后来看下效果。 ![](img/1.png)(图1)

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

432. 3D物体检测到碰撞后,被碰撞物被移除的时候过30秒再次出现?并添加到舞台 [ 47%]

...x && this.tsizez > this.osizez) { var eat = new Laya.Vector3(0, 0.5, 0);//龙卷风方法直接上升 other.owner.transform.translate(eat,true,false); //0.1秒后删除 Laya.timer.once(100, null, Wipe); function Wipe() { console.log(other._owner); //移除自己 other._owner.removeSelf();...

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

433. [LayaAir3]3.10.0 box2d wasm版本 trigger事件无法触发 [ 47%]

...用ts编写的相关内容,都要使用import和export吗? LayaTree v1.0.5版本更新(2021.11.17) LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) 关于微信7.0.3版本之后的版本,微信小游戏 Android 端调整 “在屏 Canvas” 的放缩...

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

434. 引擎示例中的新手引导自己写了一次,不知道为什么无法实现点击。 [ 47%]

...skArea.graphics.drawRect(0, 0, width, height, "#000000"); maskArea.alpha = 0.5; var interactionArea = new Sprite(); guideContainer.addChild(interactionArea); interactionArea.blendMode = "destination-out"; var tipContainer = new Sprite(); stage.addChild(tipContainer); onClick(); function onClick() { ...

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

435. 分享一个虚拟摇杆,比较粗糙,没做优化 [ 47%]

...eY), 2)); //当移动半径大于大圆的半径时,半径等于大圆的0.5的宽度(也就是半径) if (r >= this.moveMax.width/2) r = this.moveMax.width/2; var angle = Math.atan2(this.moveY - this.starY, this.moveX - this.starX); bottonX = Math.cos(angle) * r + this.starX+(this.moveMax....

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

436. laya.device.media.Video [ 47%]

...置或返回音频/视频的当前播放速度。如: 1.0 正常速度 0.5 半速(更慢) 2.0 倍速(更快) -1.0 向后,正常速度 -0.5 向后,半速 只有 Google Chrome 和 Safari 支持 playbackRate 属性。 Video  preload : String preload 属性设置或返回是否在页面...

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

437. Laya3D 中如何解决3D模型上添加文本的问题,类似Unity中的3DText [ 46%]

...color; ctx.fillText(settings.text, 0, (settings.canvasHeight - fontSize) * 0.5); //return canvas.toDataURL(); return ctx.getImageData(0, 0, canvas.width, canvas.height); } } Constantine • 2018-09-10 14:40 @大大大懒猫:十分感谢。我明白先在Canvas上绘制后获取ImageData的思路了...

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

438. laya.d3.physics.shape.SphereColliderShape_API3.0 [ 46%]

... SphereColliderShape 实例。 Parameters Default value radius: number = 0.5 半径。 Returns SphereColliderShape Properties needsCustomCollisionCallback needsCustomCollisionCallback: boolean = false Inherited from CompoundColliderShape.needsCustomCollisionCallback Defined in laya/d3/physics/shape/...

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

439. 分享,扩展Laya.Text组件实现简单的富文本 [ 46%]

...gn === "middle") startY = (this._height - visibleLineCount * lineHeight) * 0.5 + padding[0] - padding[2]; else if (tempVAlign === "bottom") startY = this._height - visibleLineCount * lineHeight - padding[2]; }; var style = this._style; if (tCurrBitmapFont && tCurrBitmapFont.autoScaleSize) { ...

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

440. laya.d3.physicscannon.shape.CannonSphereColliderShape_API3.0 [ 46%]

... SphereColliderShape 实例。 Parameters Default value radius: number = 0.5 半径。 Returns CannonSphereColliderShape Properties needsCustomCollisionCallback needsCustomCollisionCallback: boolean = false Inherited from CannonColliderShape.needsCustomCollisionCallback Defined in laya/d3/physicsCan...

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