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

大约有 3,008 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0058 秒)

1971. laya.resource.RenderTexture2D [ 53%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames RenderTexture2DProperties | Methods | Constants Packagelaya.resourceClasspublic class RenderTexture2DInheritanceRenderTexture2D BaseTexture laya.resource.Bitmap RenderTexture 类用于创建渲染目标。 Public Proper...

来源: Laya2.0_api 发布时间: 20190513

1972. 预设/场景的导出(JavaScript-3D基础(JS)-LayaAir3D之3D场景可视化编辑) [ 53%]

...如下(这里我们直接修改GameUI类)。 ```javascript export default class GameUI extends Laya.Scene { constructor(){ super(); //加载场景文件 this.loadScene("test/TestScene.scene"); //加载场景 Laya.Scene3D.load('LayaScene_test/Conventional/test.ls',Laya.Handler.create(this,this.onComp...

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

1973. 文本怎么实现 文+动态图或者动画? [ 53%]

...!! simphen • 2018-03-09 16:33 我用了ani提示我[error] Undefined class: ani var appendHtml:HTMLDivElement=new HTMLDivElement(); appendHtml.innerHTML="aa==<ani src='res/1.png'></ani>"; Laya.stage.addChild(appendHtml); Laya_Aaron • 2018-03-09 18:34 你要用图集图...

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

1974. 经验分享:如何控制龙骨动画的播放索引! [ 53%]

...ni.bone.Templet; import laya.events.Event; import laya.webgl.WebGL; public class DragonDemo { private var mFactory:Templet; private var mArmature:Skeleton; private var index:int;//帧频 private var time:Number; public function DragonDemo() { Laya.init(800,600,WebGL); index=15; mFactory=new Templet(...

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

1975. 多线程worker(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 53%]

...我们新建一个ui项目。简单的调用接口如下: ```typescript class LayaUISample { constructor() { //初始化引擎 Laya.init(600,400,Laya.WebGL); //设置Laya提供的worker.js路径 Laya.WorkerLoader.workerPath = "libs/worker.js"; //开启worker线程 Laya.WorkerLoader.enable = true; ...

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

1976. Image加载完成后的图片大小重设问题 [ 53%]

...效,一直显示都是原来设定的大小。示例代码如下:   class PlayGame extends ui.PlayGameUI {     constructor() {         super();        init();     }     public init ():void     {         this.bg_img.loadImage("ui/bg.jpg",0,0,Laya.stage.width,Laya.stage.height...

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

1977. 灯光-聚光 [ 53%]

...direction, _quaternion, _direction); spotLight.direction = _direction; }); class SpotLightDemo { private scene: Laya.Scene; private _quaternion: Laya.Quaternion; private _position: Laya.Vector3; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenM...

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

1978. error TS2339: Property 'delta' does not exist on type 'Event'. [ 53%]

...错误 LayaAirIDE2.2 - Laya3D init error ,must support webGL Warning!,this class[MiniAdpter] already exist: Object {init: } 关于@prop {name:Tab,type:Node} 我觉得好麻烦啊 ,请问一下有别的方法吗 问题状态 最新活动: 2018-04-23 11:15 浏览: 747 关注: 2 人

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

1979. 分享:LayaAir下如何加载和使用.JSON文件! [ 53%]

...件! package { import laya.net.Loader; import laya.utils.Handler; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(500,400); Laya.loader.load("unpack.json",Handler.create(this,onLoaded),null,Loader.JSON); } private function onLoaded():void { var json:JSON=Laya.loader.getRes("un...

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

1980. 对话框点击空白处真的无法关闭 [ 53%]

...Dialog.super(this); this.name = 'SelectColorDialog'; this.x = 1013; } Laya.class(selectColorDialog, "SelectColorDialog", testUI); return selectColorDialog; }());调用对话框的方法 var dialog = new SelectColorDialog(); dialog.show(); 附件 : --> testCloseDialog.rar 2018-03-26 添加评论 免...

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