大约有 3,008 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0086 秒)
Laya_社区(1073) Laya3.0_api(672) Laya2.0_api(368) laya_api(298) Laya2.0_文档(233) Laya_示例(146) Laya2.0_示例(118) Laya3.0_文档(100)
...为创建多光源的代码 代码参考“引擎API使用示例” export class MultiLight extends BaseScript { constructor() { super(); } onAwake(): void { var moveScript: LightMoveScript = this.camera.addComponent(LightMoveScript); var moverLights: Laya.Sprite3D[] = moveScript.lights; var offsets...
来源: Laya3.0_文档 发布时间: 20250103
...box/layadcc2.git 分支:dccplugin LayaDCCClient的接口定义: export class LayaDCCClient{ onlyTransUrl:boolean; //映射到dcc目录的地址头,如果没有,则按照http://*/算,所有的请求都裁掉主机地址 pathMapToDCC:string; /** * * @param frw 文件访问接口,不同的...
来源: Laya3.0_文档 发布时间: 20250103
... exported Menu Globals "laya/html/dom/HTMLIframeElement" HTMLIframeElement Class HTMLIframeElement iframe标签类,目前用于加载外并解析数据 Hierarchy HTMLDivElement HTMLIframeElement Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTest...
来源: Laya3.0_api 发布时间: 20231102
...HTMAP = customTerrainCompile3D.registerMaterialDefine("CUSTOM_LIGHTMAP"); }class Shader_Terrain { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); this.initShader(); var scene: Laya.Scene = Laya.s...
来源: Laya_示例 发布时间: 20250228
...s Only exported Menu Globals "laya/html/dom/HTMLDivElement" HTMLDivElement Class HTMLDivElement HTML图文类,用于显示html内容 支持的标签如下: a:链接标签,点击后会派发"link"事件 比如:a div:div容器标签,比如:abc span:行内元素标签,比如:abc p:行元素标...
来源: Laya3.0_api 发布时间: 20231102
...nly exported Menu Globals "laya/physics/PhysicsDebugDraw" PhysicsDebugDraw Class PhysicsDebugDraw 物理辅助线,调用PhysicsDebugDraw.enable()开启,或者通过IDE设置打开 Hierarchy Sprite PhysicsDebugDraw Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl ...
来源: Laya3.0_api 发布时间: 20231115
... 下例绘制10000个文本(根据电脑性能而定,本例为10000): class Test { private text:Laya.Text; constructor() { Laya.init(550,400,Laya.WebGL); Laya.Stat.show(); var textBox=new Laya.Sprite(); for(var i=0;i<10000;i++) { this.text=new Laya.Text(); this.text.text=(Math.random()*100).t...
来源: Laya3.0_文档 发布时间: 20240910
...xternals Only exported Menu Globals "laya/map/TileAniSprite" TileAniSprite Class TileAniSprite TildMap的动画显示对象(一个动画(TileTexSet),可以绑定多个动画显示对象(TileAniSprite)) author ... Hierarchy Sprite TileAniSprite Index Constructors constructor Properties ...
来源: Laya3.0_api 发布时间: 20231115
...Externals Only exported Menu Globals "laya/particle/Particle2D" Particle2D Class Particle2D Particle2D 类是2D粒子播放类 Hierarchy Sprite Particle2D Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoPlay autoSize hitTestPrior mouseThrough name tag drawt...
来源: Laya3.0_api 发布时间: 20231115
...ited Externals Only exported Menu Globals "laya/media/SoundNode" SoundNode Class SoundNode 用于播放背景音乐或者音效的节点 Hierarchy Sprite SoundNode Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawt...
来源: Laya3.0_api 发布时间: 20231115