大约有 520 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0053 秒)
...tage; import Texture = Laya.Texture; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Sprite_DisplayImage { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = ...
来源: Laya2.0_文档 发布时间: 20210715
...mport Point = Laya.Point; import Rectangle = Laya.Rectangle; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class TiledMap_IsometricWorld { private tiledMap: TiledMap; private layer: MapLayer; private sprite: Sprite; construct...
来源: Laya_社区 发布时间: 20201230
...第一次能打开,第二次就打不开了。 Dialog.manager.popupEffectHandler = Handler.create(this,(e)=>{ var dialog:Dialog = <Dialog>e; dialog.y = - dialog.height; var yy:number = (Laya.stage.height - dialog.height)/2; Laya.Tween.to(dialog,{y:yy},600,Laya.Ease.backOut); },[],false); ...
来源: Laya_社区 发布时间: 20171114
...次方图集区别在哪? var 与 name 的详细区别是什么? Laya.Handler.create和new Laya.Handler有啥区别 两个问题 有元件支援视频流渲染吗? Image元件读不了资料流 在List渲染的时候,在滚动一个list的时候,如何实现另一个list也跟着滚动,...
来源: Laya_社区 发布时间: 20170518
...次方图集区别在哪? var 与 name 的详细区别是什么? Laya.Handler.create和new Laya.Handler有啥区别 Dialog和View用destroy和Laya.stage.removeChild有什么区别? 在初始化时候使用canvas 或者WebGL 两种模式对使用引擎有什么区别? dispone和destory的区别...
来源: Laya_社区 发布时间: 20191021
... = Laya.Stage; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = ...
来源: Laya2.0_文档 发布时间: 20210715
...许把动画放进预制体? Laya.loader.load("prefab/gk2v1.json",Laya.Handler.create(this,function(pref:Laya.Prefab){ var gkpref:Laya.Prefab = new Laya.Prefab(); gkpref.json = pref; var OBJ = Laya.Pool.getItemByCreateFun("gk2v1",gkpref.create,gkpref); this.Scene.addChild(OBJ); })); 附件 : --> Z...
来源: Laya_社区 发布时间: 20201022
...点克隆显示正常 //Laya.loader.create(resource, Laya.Handler.create(this, this.onPreLoadFinish1)); //第二种 用自己unity导出的场景直接克隆整个.lh文件也显示正常 //Laya.loader.create(resource, Laya.Handler.create(this, this.on...
来源: Laya_社区 发布时间: 20200107
...props 变化的属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。 * @param duration 花费的时间,单位毫秒。 * @param ease 缓动类型,默认为匀速运动。 ...
来源: Laya_社区 发布时间: 20180621
...pt (function() { var Sprite = Laya.Sprite; var Texture = Laya.Texture; var Handler = Laya.Handler; var Res; var img; (function() { Laya.init(1136,640); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" //资源路径 Res = "res/img/monkey1.png"; //先加载图片资源,在图片资源加载...
来源: Laya2.0_文档 发布时间: 20210715