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

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

2741. 一篇上手LayaAir的3D物理引擎(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 35%]

...hape:Laya.BoxColliderShape = new Laya.BoxColliderShape(0.5, 0.4, 0.045); //获取本地偏移 var localOffset:Laya.Vector3 = boxShape.localOffset; //修改偏移 localOffset.setValue(0, 0, 0.125); boxShape.localOffset = localOffset; //为复合碰撞形状对象添加子形状(刚刚创建的盒...

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

2742. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 35%]

...ion clickHandler():void { var url:String = qrcode._oDrawing._elImage.src;//获取,注意这里是异步的,开发者可以加个延时在获取。 qrcodeSp.loadImage(url,0,0,100,100); } } } ``` ​ 编译运行上面的代码,然后点击舞台可以看到,二维码已经显示到了舞台...

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

2743. laya.d3.core.MeshRenderer_API3.0 [ 35%]

... Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Component.runInEditor Defined in laya/components/Component.ts:34 是否可以在IDE环境中运行 Optional scriptPath scriptPath: string Inhe...

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

2744. laya.d3.physicscannon.CannonPhysicsComponent_API3.0 [ 35%]

... Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Component.runInEditor Defined in laya/components/Component.ts:34 是否可以在IDE环境中运行 Optional scriptPath scriptPath: string Inhe...

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

2745. laya.d3.core.material.EffectMaterial_API3.0 [ 35%]

...tring Inherited from Resource.url Defined in laya/resource/Resource.ts:107 获取资源的URL地址。 uuid uuid: string Inherited from Resource.uuid Defined in laya/resource/Resource.ts:109 获取资源的UUID。 Static ALPHATESTVALUE ALPHATESTVALUE: number Inherited from Material.ALPHATESTVALUE De...

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

2746. 精灵 · LayaAir3.4 · 引擎文档 · LAYABOX [ 35%]

...且不会随着绘制内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true。示例代码如下: let sprite = new Laya.Sprite(); // 添加到舞台 Laya.stage.addChild(sprite); sprite.autoSize = true; 3.4.4 缓存为静态图像 示例代码如下: let...

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

2747. Unity插件使用说明(TypeScript-3D基础(TS)-LayaAir3D之3D场景可视化编辑) [ 34%]

...中返回的完整场景scene添加到舞台 Laya.stage.addChild(scene); //获取摄像机 var camera = scene.getChildByName("Main Camera"); /** ** 省略其它代码若干,可前往Layabox官网示例或相关文档中查看 */ })); ``` ##### 5.2.2 预设的加载与使用(.lh) 有一些模型或...

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

2748. Byte二进制读写(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 34%]

...);//清除所有数据归零。 ``` - **getSystemEndian()**:string[static] 获取系统的字节存储顺序。 ```typescript console.log(Laya.Byte.getSystemEndian());//打印系统的字节顺序 ``` - ### 属性 - **BIG_ENDIAN** : string= bigEndian[static] 表示多字节数字的最高有效字...

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

2749. laya.maths.Matrix4x4_API3.0 [ 34%]

...ward getForward(out: Vector3): void Defined in laya/maths/Matrix4x4.ts:862 获取前向量。 Parameters out: Vector3 前向量。 Returns void getInvertFront getInvertFront(): boolean Defined in laya/maths/Matrix4x4.ts:883 判断此矩阵是否是反向矩阵 Returns boolean getTranslationVector ge...

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

2750. Byte二进制读写(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 34%]

...);//清除所有数据归零。 ``` - **getSystemEndian()**:String[static] 获取系统的字节存储顺序。 ```typescript trace(Byte.getSystemEndian());//打印系统的字节顺序 ``` - ### 属性 - **BIG_ENDIAN** : String= bigEndian[static] 表示多字节数字的最高有效字节位于字...

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