大约有 1,761 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0067 秒)
Laya_社区(1450) Laya3.0_api(94) Laya2.0_文档(77) Laya3.0_文档(52) Laya_示例(36) laya_api(32) Laya2.0_api(19) Laya2.0_示例(1)
...空父节点 Ctrl + shift + G 2D的空节点是Sprite,3D的空节点是Sprite3D 1.3.2 展开全部子节点:Alt + 鼠标左键单击 正展情况下,单击节点前的三角箭头,会展开一层子节点。 当使用 Alt + 鼠标左键单击 的组合功能键后,可直接展开其下的...
来源: Laya3.0_文档 发布时间: 20251010
...sform: Transform3D; onStart(): void { this.transform = (this.owner as Laya.Sprite3D).transform; this.CurrentAngles = new Vector3(-this.transform.rotationEuler.x, this.transform.rotationEuler.y, 0); this.targetAngles = new Vector3(-this.transform.rotationEuler.x, this.transform.rotationEuler.y, 0); t...
来源: Laya_社区 发布时间: 20170714
...sform: Transform3D; onStart(): void { this.transform = (this.owner as Laya.Sprite3D).transform; this.CurrentAngles = new Vector3(-this.transform.rotationEuler.x, this.transform.rotationEuler.y, 0); this.targetAngles = new Vector3(-this.transform.rotationEuler.x, this.transform.rotationEuler.y, 0); t...
来源: Laya_社区 发布时间: 20190224
... Laya.Vector3(1, -1, -1); //平面 var plane = scene.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(6, 6, 10, 10))); var planeMat = new Laya.StandardMaterial(); planeMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0.9, ...
来源: Laya_示例 发布时间: 20251219
...就可以看到.ls后缀的文件。 .lh 预设文件,选择导出预设Sprite3D类别时生成的文件类型。相对于.ls后缀的场景文件,会缺少环境光、环境反射、场景雾效等等与场景渲染相关的信息。 .lm 模型数据文件,通常是FBX格式的转换而成。...
来源: Laya3.0_文档 发布时间: 20251010
...lass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { let opendata = new Laya.OpenDataContextView(); Laya.stage.add...
来源: Laya3.0_文档 发布时间: 20251010
...5) at Function.Utils3D._createNodeByJson (laya.d3.js:17954) at Sprite3D.__proto.onAsynLoaded (laya.d3.js:30800) at ResInfo.onLoaded (laya.core.js:13189) at EventHandler.__proto.runWith (laya.core.js:726) at ResInfo.__proto.event (laya.core.js:494) at LoaderManager...
来源: Laya_社区 发布时间: 20180731
...egClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; constructor() { super(); } event1(p1:any, p2:any): void { console.log("event1",p1,p2); } } 在脚本中创建event1的方法和接收两个参数,最后我们来运行动画,看看运行结果: (图9-4) Co...
来源: Laya3.0_文档 发布时间: 20251118
...regClass() export class Script1 extends Laya.Script { declare owner : Laya.Sprite3D; } //TestCustomEditor.ts @IEditorEnv.customEditor(Script1) export class TestCustomEditor extends IEditorEnv.CustomEditor { declare owner: Laya.Sprite3D; onSceneGUI(): void { IEditorEnv.Handles.drawHemiSphere(this.own...
来源: Laya3.0_文档 发布时间: 20251010
...,纹理可以应用于2D对象(如Sprite、Image等)和3D对象(如Sprite3D的材质)上,用于呈现图像、颜色和细节。 1、纹理资源基础 1.1 纹理资源的类型 LayaAir引擎支持多种类型的纹理资源: 普通纹理资源:常规的图像纹理,如png、jpg、...
来源: Laya3.0_文档 发布时间: 20251128