大约有 3,003 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0142 秒)
Laya_社区(1068) Laya3.0_api(668) Laya2.0_api(366) laya_api(298) Laya2.0_文档(230) Laya_示例(146) Laya2.0_示例(118) Laya3.0_文档(109)
...后,加入下述代码,实现一个光遮挡器的效果: const { regClass, property } = Laya; @regClass() export class LightOccluder extends Laya.Script { private spotLight: Laya.Sprite = new Laya.Sprite(); private background: Laya.Sprite = new Laya.Sprite(); private lightOccluder: Laya.Sprit...
来源: Laya3.0_文档 发布时间: 20251010
...com/api2/Chinese/index.html?version=2.9.0beta&type=Core&category=Component&class=laya.components.Script ### 三、Runtime与脚本的使用区别 LayaAir的组件化开发,核心就是Runtime类与Script(脚本组件)类的合理运用,生命周期方法的使用。 有不少开发者对IDE...
来源: Laya2.0_文档 发布时间: 20210715
...。以给Image组件添加皮肤为例,示例代码如下: const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { onAwake(): void { let img = new Laya.Image; Laya.stage.addChild(img); img.pos(500,100); img.skin = "resources/layabox.png"; //纹理压缩的图片...
来源: Laya3.0_文档 发布时间: 20251010
API DocumentationAll Packages | All Classes | Index | Frames No Frames LabelProperties | Methods | Events Packagelaya.uiClasspublic class LabelInheritanceLabel UIComponent Sprite Node EventDispatcher ObjectSubclasses TextInput Label 类用于创建显示对象以显示文本。 See alsolay...
来源: Laya2.0_api 发布时间: 20190513
API DocumentationAll Packages | All Classes | Index | Frames No Frames ScrollBarProperties | Methods | Events Packagelaya.uiClasspublic class ScrollBarInheritanceScrollBar UIComponent Sprite Node EventDispatcher ObjectSubclasses HScrollBar, VScrollBar ScrollBar 组件是一个滚动条组...
来源: Laya2.0_api 发布时间: 20190513
...ernals Only exported Menu Globals "laya/d3/core/MeshSprite3D" MeshSprite3D Class MeshSprite3D MeshSprite3D 类用于创建网格。 Hierarchy RenderableSprite3D MeshSprite3D Index Constructors constructor Properties _extra _scene _url name tag LIGHTMAP LIGHTMAPSCALEOFFSET LIGHTMAP_DIRECTION PICKCOLO...
来源: Laya3.0_api 发布时间: 20231115
...bals "laya/d3/core/particleShuriKen/ShuriKenParticle3D" ShuriKenParticle3D Class ShuriKenParticle3D ShuriKenParticle3D 3D粒子。 Hierarchy RenderableSprite3D ShuriKenParticle3D Index Constructors constructor Properties _extra _scene _url name tag LIGHTMAP LIGHTMAPSCALEOFFSET LIGHTMAP_DIRECTION PIC...
来源: Laya3.0_api 发布时间: 20231115
API DocumentationAll Packages | All Classes | Index | Frames No Frames StandardMaterialProperties | Methods | Constants Packagelaya.d3.core.materialClasspublic class StandardMaterialInheritanceStandardMaterial BaseMaterial laya.resource.Resource ... Public Properties Hide Inherited Public ...
来源: laya_api 发布时间: 20170929
API DocumentationAll Packages | All Classes | Index | Frames No Frames TileAniSpriteProperties | Methods | Events Packagelaya.mapClasspublic class TileAniSpriteInheritanceTileAniSprite Sprite Node EventDispatcher Object TildMap的动画显示对象(一个动画(TileTexSet),可以...
来源: laya_api 发布时间: 20170929
...ported Menu Globals "laya/d3/core/SkinnedMeshSprite3D" SkinnedMeshSprite3D Class SkinnedMeshSprite3D SkinnedMeshSprite3D 类用于绑点骨骼节点精灵。 Hierarchy RenderableSprite3D SkinnedMeshSprite3D Index Constructors constructor Properties _extra _scene _url name tag BONES LIGHTMAP LIGHTMAP...
来源: Laya3.0_api 发布时间: 20231115