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

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

2541. swf转成H5资源显示超出原有范围 [ 45%]

...stem.LoaderContext;     import flash.system.Capabilities;     public class Main extends Sprite     {         public function Main():void         {             if (stage) init();             else addEventListener(Event.ADDED_TO_STAGE, init);         }   ...

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

2542. 渲染优化原则(ActionScript-2D进阶篇(AS3)-性能优化) [ 45%]

...laya.display.Text; import laya.utils.Stat; import laya.webgl.WebGL; public class Test { private var text:Text; public function Test() { Laya.init(550,400,WebGL); Stat.show(); var textBox:Sprite =new Sprite(); for(var i:int=0;i ​ (图1) ​ 当我们对文字所在的容器设置为cacheAs之...

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

2543. laya.net.Loader [ 45%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames LoaderProperties | Methods | Events | Constants Packagelaya.netClasspublic class LoaderInheritanceLoader EventDispatcher Object Loader 类可用来加载文本、JSON、XML、二进制、图像等资源。 Public Prope...

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

2544. ja语言怎么样创建一个工具类在其他地方调用 [ 45%]

...nction (_super) { function Load_() { Load_.super(this); } //注册类 Laya.class(Load_, "Load_", _super); var _proto = Load_.prototype; _proto.run_Fast = function () { console.log("逻辑处理"); } return Load_; })(Laya.Sprite);我的代码,但是下面的继承位置Laya.Sprite这里不写会报...

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

2545. 分享:销毁龙骨动画! [ 45%]

...aya.utils.Browser; import laya.utils.Stat; import laya.webgl.WebGL; public class ASDemo { private var mAniPath:String; private var mFactory:Templet; private var mCurrIndex:int = 0; private var mArmature:Skeleton; public function ASDemo() { WebGL.enable(); Laya.init(Browser.width, Browser.height); La...

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

2546. laya.resource.RenderTexture_API3.0 [ 45%]

...als Only exported Menu Globals "laya/resource/RenderTexture" RenderTexture Class RenderTexture Hierarchy BaseTexture RenderTexture WebXRRenderTexture RenderTextureCube Implements IRenderTarget Index Constructors constructor Properties _generateMipmap _id _inPool _isCameraTarget _renderTarget destroy...

来源: Laya3.0_api 发布时间: 20231115

2547. List 组件做的手风琴Demo [ 45%]

...   this.listArr[0].refresh()         }     /** * 创建BOX */ class Item extends Laya.Box{     public static WID:number =100;     public static HEI:number =30;     constructor(){         super()         this.size(Item.WID,Item.HEI);         var img1 =n...

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

2548. 问下,3D模型导出有什么要求 [ 45%]

...liwenhua • 2017-03-19 18:00 呃呃,代码我用的这个 // 程序入口 class GameMain{ constructor() { //Laya.init(600,400); Laya3D.init(600,400); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; //创景场景 var scene:Laya.Scene = new Laya.Scene(); Laya.stage.addChild(scene); //创建摄像机 v...

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

2549. List翻页效果 [ 45%]

..."../data/ConfigInfo"; import { ui } from "../ui/layaMaxUI"; export default class RuleDialog extends ui.scene.RuleDialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(thi...

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

2550. 版本号:2.0.2 beta, 在sound文件夹下音乐播放不了,放入到res文件夹下可播放 [ 45%]

...; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export default class Test_11_Sound {  //声明一个信息文本 private txtInfo: Text;  constructor() { this.setup(); }  private setup(): void { var gap: number = 10;  //创建一个Sprite充当音效播放按钮 var soundButton: Sprit...

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