大约有 1,801 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0066 秒)
Laya_社区(851) Laya3.0_api(323) Laya2.0_api(248) laya_api(179) Laya2.0_文档(142) Laya3.0_文档(52) Laya2.0_示例(4) Laya_示例(2)
...片显示出来即可。 核心代码如下: ```javascript //创建Image实例 var img = new Laya.Image(); //设置皮肤(取图集中小图的方式就是 原小图目录名/原小图资源名.png) img.skin = "test/c1.png"; //添加到舞台上显示 Laya.stage.addChild(img); ``` 代码运行...
来源: Laya2.0_文档 发布时间: 20210715
...片显示出来即可。 核心代码如下: ```javascript //创建Image实例 var img = new Laya.Image(); //设置皮肤(取图集中小图的方式就是 原小图目录名/原小图资源名.png) img.skin = "test/c1.png"; //添加到舞台上显示 Laya.stage.addChild(img); ``` 代码运行...
来源: Laya2.0_文档 发布时间: 20210714
...er Defined in laya/ani/AnimationPlayer.ts:268 创建一个 AnimationPlayer 实例。 Returns AnimationPlayer Properties isCache isCache: boolean = true Defined in laya/ani/AnimationPlayer.ts:65 是否缓存 playbackRate playbackRate: number = 1 Defined in laya/ani/AnimationPlayer.ts:67 播放速率 ...
来源: Laya3.0_api 发布时间: 20231115
...片显示出来即可。 核心代码如下: ```javascript //创建Image实例 var img = new Laya.Image(); //设置皮肤(取图集中小图的方式就是 原小图目录名/原小图资源名.png) img.skin = "test/c1.png"; //添加到舞台上显示 Laya.stage.addChild(img); ``` 代码运行...
来源: Laya2.0_文档 发布时间: 20210714
...errides Resource.__constructor Defined in laya/resource/TextResource.ts:23 实例化文字资源 Parameters data: any format: TextResourceFormat Returns TextResource Properties _id _id: number = 0 Inherited from Resource._id Defined in laya/resource/Resource.ts:97 Readonly data data: any Defined in ...
来源: Laya3.0_api 发布时间: 20231115
...ructor Defined in laya/d3/core/light/Light.ts:177 创建一个 LightSprite 实例。 Returns Light Properties Optional _extra _extra: IComponentExtra Inherited from Component._extra Defined in laya/components/Component.ts:36 Optional _singleton _singleton: boolean = true Inherited from Component._si...
来源: Laya3.0_api 发布时间: 20231115
...source.__constructor Defined in laya/components/AnimatorController2D.ts:23 实例化2D动画控制器 Parameters data: any Returns AnimatorController2D Properties _id _id: number = 0 Inherited from Resource._id Defined in laya/resource/Resource.ts:97 destroyedImmediately destroyedImmediately: boolea...
来源: Laya3.0_api 发布时间: 20231115
...是默认状态)。 **2.** 在设置 stateMap 之后该材质是逐材质实例提交。即修改了一个材质的渲染状态,仅对自己本身的渲染状态修改。  我们可以看下Blinnphong材质添加 `stateMap` 的代码。 > BLINNPHONG材质初始化 ```typescript var s...
来源: Laya2.0_文档 发布时间: 20210715
...errides Resource.__constructor Defined in laya/resource/AtlasResource.ts:9 实例化体格大图合集资源 Parameters dir: string textures: Array<Texture> frames: Array<Texture> Returns AtlasResource Properties _id _id: number = 0 Inherited from Resource._id Defined in laya/resource/Re...
来源: Laya3.0_api 发布时间: 20231115
...d in laya/d3/physics/PhysicsComponent.ts:353 创建一个 PhysicsComponent 实例。 Parameters collisionGroup: number 所属碰撞组。 canCollideWith: number 可产生碰撞的碰撞组。 Returns PhysicsComponent Properties Optional _extra _extra: IComponentExtra Inherited from Component._extra ...
来源: Laya3.0_api 发布时间: 20231115