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

大约有 1,125 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0051 秒)

761. 2.x引擎项目升级说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 61%]

...一个类实现IResourceLoader接口,例如一个最简单的实现: class MyLoader { load(task:ILoadTask) { return task.loader.fetch(task.url, "json", task.createCallback()).then(data=> { let obj = /*解析data*/; return obj; }); } } 加载类里不需要考虑是单独加载,还是是批...

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

762. Laya2自动同步cullingMask方案以及灯光裁剪补丁 [ 61%]

...相机进行。因此务必保持与摄相机相同。 **/ export default class ExtCullingMask { public static enableLightCullingMask(scene: Laya.Scene3D) { //var proto = Laya.Scene3D.prototype as any; (scene as any).lightCullingMask = function (scene, camera) { //灯光处理开始 麒麟子添加 ...

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

763. 关于位图字体的valign属性问题 [ 61%]

...isplay.Sprite; import laya.display.Text; import laya.utils.Handler; public class GraphicCircle extends Sprite { private var mFontName:String="dataFont"; private var mBitmap:BitmapFont; public function GraphicCircle() { super(); Laya.init(550,400); mBitmap=new BitmapFont(); mBitmap.loadFont("date/dat...

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

764. TS版本的官方示例,导出到玩一玩,在读写文件时能存不能读,读不出来,甚至直接读取会显示字符串里边有乱码。。。。 [ 61%]

...er.js的 var LocalStorageAdpt=(function(){ function LocalStorageAdpt(){} __class(LocalStorageAdpt,'BKLaya.adptcodes.LocalStorageAdpt'); LocalStorageAdpt._readData=function(){ if (!BK.FileUtil.isFileExist(LocalStorageAdpt.dataPath)){ return null; } try{ var dataO=BK.FileUtil.readFile(LocalStorageAdpt...

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

765. 照着官方文档写的 Dialog 报错? [ 61%]

...Area = "0,0," + bgImg.width + "," + bgImg.height; dialog.show(); }; } Laya.class(LoadResource, "LoadResource", null);照着官方文档实例, 写了一个显示 Dialog 代码, 怎么显示不出来?而且F12里输出报错: Uncaught TypeError: Cannot read property 'visible' of undefined   ...

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

766. Laya2.4版本,场景为内嵌时layaMaxUI类中没有声明场景中的Button等控件? [ 61%]

...声明场景中的Button等控件? export module ui {     export class GameSceneuiUI extends Laya.Scene {         public static  uiView:any ={"type":"Scene","props":{"width":720,"height":1280},"compId":2,"child":[{"type":"Button","props":{"y":616,"x":296,"skin":"comp/button...

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

767. laya.ani.bone.Templet [ 61%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames TempletProperties | Methods | Events Packagelaya.ani.boneClasspublic class TempletInheritanceTemplet laya.ani.AnimationTemplet 动画模板类 Public Properties PropertyDefined By  aniSectionDic : ObjectTemplet  bi...

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

768. laya.display.GraphicAnimation [ 61%]

...动 附上源码 declare module laya.editorUI { /** * Graphics解析器 */ class GraphicParser extends laya.display.GraphicAnimation { protected _getTextureByUrl(url: string): string; static parseAnimationData(aniData: any): any; } } 2020-07-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

769. 在Test中有个按钮点击,那么我如何发信号,使得这个点击能给控制Sample中的对象,如何调用函数 [ 61%]

...该事件进行监听package { import laya.events.EventDispatcher; public class Mod extends EventDispatcher { public function Mod() { super(); } private static var _instance:Mod; public static function get index():Mod { return _instance ||= new Mod(); } public function init():void { Mod.event("aaaa"...

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

770. laya.d3.component.animation.CameraAnimations [ 61%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames CameraAnimationsProperties | Methods | Events Packagelaya.d3.component.animationClasspublic class CameraAnimationsInheritanceCameraAnimations KeyframeAnimations Component3D EventDispatcher Object CameraAnimations 类用...

来源: laya_api 发布时间: 20170603