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

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

461. UI组件的分类与继承关系(ActionScript-IDE篇(AS3)-设计模式基础) [ 45%]

...、滤镜组件(Filters),绘图组件(Graphics)、物理组件(physics)、UI组件(UI)、公共组件(common),如图1所示。开发者也可以自定义组件。本篇将围绕UI组件进行介绍。 ![图1](img/1.png) (图1) ## 1、UI组件的分类 根据组件自身...

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

462. laya.events.EventDispatcher_API3.0 [ 45%]

...form3D SoundChannel Sound HttpRequest Loader AnimatorState AnimatorState2D Physics AnimationPlayer AxiGamepad ButtonGamepad WebXRInput WebXRSessionManager Accelerator Shake Gyroscope Socket TimeLine Index Methods event hasListener off offAll offAllCaller on once Methods event event(type: string, dat...

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

463. 按官网上的文档 使用LayaNative运行LayaAir项目https://ldc.layabox.com/doc/?nav=zh-as-7-0-1。出现了问题 [ 45%]

...基本的形状拼出地形 Mr.余 • 2018-06-12 13:55 @Laya_Aaron:Laya.Physics.rayCast这函数是检查不到MeshCollider的吗。感觉laya很多东西都不全面啊-。

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

464. 求指点3d射线碰撞和UI点击穿透的问题 [ 44%]

...;              //射线检测获取所有检测碰撞到的物体 Physics.rayCastAll(ray, _outHitAllInfo, 500, 0);   这是通过屏幕当前鼠标位置获取一条射线碰撞集合,然后我又创建了一个Button,点击Button时发现射线也响应了,如何能让点击UI时不...

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

465. 加载lh格式模型报错 [ 44%]

...斌 赞同来自: 在index.js 里面引入3d库文件 loadLib("libs/laya.physics3D.js")   2019-04-02 0 0 分享 微博 QZONE 微信 1573629845用户 赞同来自: 我也遇到了同样得问题不知道如何解决 TypeError: Cannot read property 'props' of undefined preload.js:55 at Function._getS...

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

466. 用raycast选取实体,hitresult始终是false [ 43%]

...用raycast选取实体,hitresult始终是false 按照官方范例,Laya.Physics.raycast方法已经不能用了;   从网上找了physicsSimulation.raycast方法,但无论如何,outHitResult的结果都是false,不知道哪里设置不正确   另外,射线的位置和方向也很奇...

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

467. 在Laya中使用Matter.js的最简示例 (JS) [ 43%]

...ine: engine, width: 640, height: 480, options: { // background: '../../res/physics/img/background.png', wireframes: false//true// } }); // create two boxes and a ground var boxA = Bodies.rectangle(400, 200, 80, 80); var boxB = Bodies.rectangle(450, 50, 80, 80); var ground = Bodies.rectangle(400, 610...

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

468. 射线检测报错,outHitInfo.sprite3D=null; [ 42%]

...Manager.instance.mouseX,Laya.MouseManager.instance.mouseY),this.ray); Laya.Physics.rayCast(this.ray,this.hit); console.log("当前射线碰撞的信息是:" + this.hit.sprite3D.name); //摄像机位置 var position:Laya.Vector3=new Laya.Vector3(this.camera.position.x, 0, this.camera.position.z); //...

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

469. Cannot read property 'toDefault' of undefined报错是什么原因 [ 42%]

...ToRay(this.point, this.ray); //11111111111111就是下面这句报错 Laya.Physics.rayCast(this.ray, this._outHitInfo, Number.MAX_VALUE, 10); if (this._outHitInfo.sprite3D.name === "tlj"){ isRotate = !isRotate; } // this.phasorSpriter3D.begin(Laya.WebGLContext.LINES, state); // //绘出射线 // thi...

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

470. laya 3D碰撞器与 Unity 不一致问题 [ 41%]

...Transform的Scale导致的,可以修改laya.d3.js文件里的_innerDerivePhysicsTransformation方法,加粗部分为补丁: if (shapeOffset.x !== 0 || shapeOffset.y !== 0 || shapeOffset.z !== 0) {                 var physicPosition = PhysicsComponent._tempVector30;              ...

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