• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 3,041 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0124 秒)

2131. 材质-BlinnPhong-法线贴图 [ 51%]

...form.rotate(this.rotation); monster2.transform.rotate(this.rotation); }); }class BlinnPhong_NormalMap { private scene:Laya.Scene; private rotation:Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); private normalMapUrl:any = ["../../res/threeDimen/staticModel/lizardCal/rock_norm.png", "../../res/threeDime...

来源: Laya_示例 发布时间: 20260303

2132. 分享:如何用代码创建自定义Tab组件 [ 51%]

... laya.ui.Tab; import laya.utils.Browser; import laya.utils.Handler; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(Browser.width,Browser.height); Laya.stage.bgColor="#EEFFCC"; //预加载button的资源,用于tab的项皮肤 Laya.loader.load("button-4.png",Handler.create(this...

来源: Laya_社区 发布时间: 20170626

2133. Spine动画烘焙插件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 51%]

...: 通过脚本中代码添加,示例代码如下所示: const { regClass, property } = Laya; @regClass() export class SpineTest extends Laya.Script { //组件被启用后执行,例如节点被添加到舞台后 onEnable(): void { //加载预制体文件 Laya.loader.load("resources/spine3.8/b...

来源: Laya3.0_文档 发布时间: 20251010

2134. HttpRequest详解(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 51%]

...发的功能。我们写个简单的例子来看下用法: ```typescript class LayaSample { constructor() { //初始化引擎 Laya.init(1136, 640); var xhr: Laya.HttpRequest = new Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Laya.Event.COMPLETE, this, this.complete...

来源: Laya2.0_文档 发布时间: 20210715

2135. [LayaAir3]Laya.loader.loadPackage 加载勾选版本管理的子包失败 [ 51%]

... 2024-11-01 0 1 分享 微博 QZONE 微信 雄二 赞同来自: const { regClass, property } = Laya; @regClass() export class StartScene extends Laya.Script { onAwake(): void { Laya.timer.once(1000, this, () => { Laya.loader.loadPackage("common", "http://127.0.0.1:2840", (p) => { console.log("...

来源: Laya_社区 发布时间: 20241101

2136. 动画状态脚本(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 51%]

...pescript //继承自AnimatorStateScript(动画状态脚本) export default class AnimatorStateScriptTest extends Laya.AnimatorStateScript { private _text:Laya.Text; constructor() { super(); } get text():Laya.Text { return this._text; } set text(value) { this._text = value; } /** * 动画状态开始...

来源: Laya2.0_文档 发布时间: 20210715

2137. 材质-PBRStandard材质 [ 51%]

...shRender.sharedMaterial = mat; barrel3.meshRender.sharedMaterial = mat; });class PBRStandardMaterialDemo { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene: Laya.Scene = Laya.stage.addCh...

来源: Laya_示例 发布时间: 20260303

2138. Laya.Script _start和_update以及_lateupdate不执行是什么原因呢? [ 51%]

...a.Script _start和_update以及_lateupdate不执行是什么原因呢?  class b extends Laya.Script{    _initialize(owner:Laya.Sprite3D){      super._initialize(owner);      //加打印可以执行    }        _start(state:Laya.RenderState):void{       //加打印不执行    ...

来源: Laya_社区 发布时间: 20180423

2139. 解析sk资源报错 [ 51%]

...a.ani.bone.Templet;     import laya.events.Event;          public class CombatRole extends BaseRole     {         private var _templet:Templet;         public function CombatRole()         {             super();             initView();         } ...

来源: Laya_社区 发布时间: 20170204

2140. Clip组件Bug:Play方法无法结束循环 [ 51%]

...,现在有插件开发,修改源码会有问题): export default class GifView extends Laya.Clip {     /**      *开始帧位置      *      * @private      * @memberof GifView      */     private frameIndex = 0;     /**      *结束帧...

来源: Laya_社区 发布时间: 20201211