大约有 1,253 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0068 秒)
...代码如下: ```typescript /** * TypeScript语言的3D脚本示例 */ export default class TSDemo extends Laya.Script3D { constructor() { super(); } } ``` > 2D脚本与3D脚本不要混用,如果是用IDE创建的脚本模板,需要将继承的2D脚本类(Laya.Script)改为3D脚本类(L...
来源: Laya2.0_文档 发布时间: 20210715
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/light/PointLight" PointLight Class PointLight deprecated PointLight 类用于创建点光。 Hierarchy LightSprite PointLight Index Constructors constructor Properties _extra _scene _url na...
来源: Laya3.0_api 发布时间: 20231115
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/BaseCamera" BaseCamera Class BaseCamera BaseCamera 类用于创建摄像机的父类。 Hierarchy Sprite3D BaseCamera Camera Index Constructors constructor Properties _extra _forward _scene...
来源: Laya3.0_api 发布时间: 20231115
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/light/SpotLight" SpotLight Class SpotLight deprecated SpotLight 类用于创建聚光。 Hierarchy LightSprite SpotLight Index Constructors constructor Properties _extra _scene _url name ta...
来源: Laya3.0_api 发布时间: 20231115
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/RenderableSprite3D" RenderableSprite3D Class RenderableSprite3D RenderableSprite3D 类用于可渲染3D精灵的父类,抽象类不允许实例。 Hierarchy Sprite3D RenderableSprite3D Pi...
来源: Laya3.0_api 发布时间: 20231115
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/light/DirectionLight" DirectionLight Class DirectionLight deprecated DirectionLight 类用于创建平行光。 Hierarchy LightSprite DirectionLight Index Constructors constructor Propertie...
来源: Laya3.0_api 发布时间: 20231115
...b.ts代码如下所示: ```javascript /** * 分包 */ module subpackage{ export class b{ private GameMain:any; private ui:any; constructor(){ //监听按钮btnA的点击事件,触发后处理 this.GameMain.newUI.btnA.on(Laya.Event.CLICK, this, this.showB); } //显示B页 private showB():void { t...
来源: Laya2.0_文档 发布时间: 20210715
...ilable ts Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/MeshTerrainSprite3D" MeshTerrainSprite3D Class MeshTerrainSprite3D TerrainMeshSprite3D 类用于地形节点转换普通mesh渲染。 Hierarchy MeshSprite3D MeshTerrainSprite3D Index Constr...
来源: Laya3.0_api 发布时间: 20231102
... import Burst = Laya.Burst; export class JinBi extends ShuriKenParticle3D { constructor() { let material = ShurikenParticleMaterial.load("resources/Assets/ArtResources/Effects/Materials/Effect_yu_jinbi_xulie.lmat");...
来源: Laya_社区 发布时间: 20170605
...DAgent = Laya.Nav2DAgent; const { regClass, property } = Laya; @regClass() export class TestSprite extends Laya.Script { // 用于显示鼠标点击的位置 @property({ type: Laya.Sprite }) public hit: Sprite; private _temp: Sprite; private _allAgent: Nav2DAgent[] = []; private findCompents(lists: ...
来源: Laya3.0_文档 发布时间: 20250214