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

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

2521. laya.d3.math.Vector3 [ 45%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames Vector3Properties | Methods Packagelaya.d3.mathClasspublic class Vector3InheritanceVector3 ObjectImplements laya.d3.core.IClone Vector3 类用于创建三维向量。 Public Properties PropertyDefined By  x : NumberX...

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

2522. ScrollRect设置会引起其他的UI资源无法正在显示 [ 45%]

...ort laya.ui.Image; import laya.utils.Handler; import ui.TestViewUI; public class TestView extends TestViewUI { private var PATH_LEN:Number = 120.0; private var speed:Number = 15; private var _path:Sprite = new Sprite(); private var arr:Array = []; public function TestView() { super(); _path.pivot(0,...

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

2523. 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

2524. 渲染优化原则(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

2525. 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

2526. 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

2527. 分享:销毁龙骨动画! [ 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

2528. 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

2529. 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

2530. 问下,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