大约有 287 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0065 秒)
Laya_社区(106) Laya3.0_api(67) Laya3.0_文档(42) Laya2.0_文档(25) laya_api(24) Laya2.0_api(22) Laya2.0_示例(1)
...属性中的**sharedMesh** 就是模型的网格,可以对它进行重新创建更换及销毁。 在下面示例中,我们给按钮加了添加了个点击事件。每次点击index值自加,然后根据index值修改从场景ls中获取到的模型网格。 ```typescript //新建四个mesh v...
来源: Laya2.0_文档 发布时间: 20210715
...ore/light/SpotLightCom" SpotLightCom Class SpotLightCom SpotLight 类用于创建聚光。 Hierarchy Light SpotLightCom Index Constructors constructor Properties _extra _singleton color owner runInEditor scriptPath Accessors awaked destroyed enabled hideFlags id intensity lightWorldMatrix lightmapBa...
来源: Laya3.0_api 发布时间: 20231115
...组件扩展功能。通过在runtime属性中设置逻辑类,实例时创建的不再是组件的可视类,而是runtime属性中指定的逻辑类。该属性中需要指定逻辑类的全路径,例如“game.user.player”。 ### 2.4 visible `visible`是否显示默认为true。 ## 3、宽...
来源: Laya2.0_文档 发布时间: 20210714
...组件扩展功能。通过在runtime属性中设置逻辑类,实例时创建的不再是组件的可视类,而是runtime属性中指定的逻辑类。该属性中需要指定逻辑类的全路径,例如“game.user.player”。 ### 2.4 visible `visible`是否显示默认为true。 ## 3、宽...
来源: Laya2.0_文档 发布时间: 20210715
...erComponent Class PhysicsTriggerComponent PhysicsTriggerComponent 类用于创建物理触发器组件。 Hierarchy PhysicsComponent PhysicsTriggerComponent PhysicsCollider Rigidbody3D Index Constructors constructor Properties _extra _singleton canScaleShape owner runInEditor scriptPath Accessors aw...
来源: Laya3.0_api 发布时间: 20231115
...组件扩展功能。通过在runtime属性中设置逻辑类,实例时创建的不再是组件的可视类,而是runtime属性中指定的逻辑类。该属性中需要指定逻辑类的全路径,例如“game.user.player”。 ### 2.4 visible `visible`是否显示默认为true。 ## 3、宽...
来源: Laya2.0_文档 发布时间: 20210714
...使用一个名为“layaFlashDebug”的项目,开发者也可以自己创建。项目入口文件类Main.as的代码如下: package { import flash.display.Sprite; import flash.events.Event; public class Main extends Sprite { public function Main() { if (stage) init(); else addEventListener(Eve...
来源: Laya_社区 发布时间: 20151218
...csCollider" PhysicsCollider Class PhysicsCollider PhysicsCollider 类用于创建物理碰撞器。 Hierarchy PhysicsTriggerComponent PhysicsCollider Index Constructors constructor Properties _extra _singleton canScaleShape owner runInEditor scriptPath Accessors awaked canCollideWith ccdMotionThresh...
来源: Laya3.0_api 发布时间: 20231115
...属性中的**sharedMesh** 就是模型的网格,可以对它进行重新创建更换及销毁。 在下面示例中,我们给按钮加了添加了个点击事件。每次点击index值自加,然后根据index值修改从场景ls中获取到的模型网格。 ```typescript //新建四个mesh v...
来源: Laya2.0_文档 发布时间: 20210714
...6 Android微信版本:7.0.4 iOS微信版本:7.0.3 操作过程: 1.创建Laya 2.0.1 3D示例项目 2.在GameUI.ts中box.meshRenderer.material = material;后插入如下代码: // 自定义内容 directionLight.shadow = true; box.meshRenderer.castShadow = true; box.meshRenderer.receiveShad...
来源: Laya_社区 发布时间: 20190423