大约有 1,301 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0061 秒)
Laya_社区(739) Laya2.0_文档(164) Laya3.0_api(108) Laya2.0_示例(81) Laya_示例(70) Laya2.0_api(58) laya_api(54) Laya3.0_文档(27)
...g — JSON文件名字 viewRect:Rectangle — 视口区域 completeHandler:Handler — 地图创建完成的回调函数 viewRectPadding:Rectangle (default = null) — 视口扩充区域,把视口区域上、下、左、右扩充一下,防止视口移动时的穿帮 gridSize:Po...
来源: Laya_社区 发布时间: 20180503
...isplay.Text; import laya.display.Sprite; import laya.utils.Handler; import laya.resource.Texture; public class LayaSample { private var img:Sprite ; private var index:int ; public function LayaSample() { ...
来源: Laya_社区 发布时间: 20170918
...r AniConfPath = 'res/atlas/cloud.json'; Laya.loader.load(AniConfPath, Laya.Handler.create(this, this.createAnimation), null, Laya.loader.ATLAS); function createAnimation() { var ani = new Laya.Animation(); ani.loadAtlas(AniConfPath); ani.interval = 30; ani.index = 1; ani.play(); Laya.stage.addChild(...
来源: Laya_社区 发布时间: 20170920
...如果设置为true,则点击空白区域可以穿透过去。” 2.Laya.Handler 我在处理技能的时候用了对象池,其中类有对handler的持有,再次使用时发现数据不对了,查找很久才发现handler调用了recover,被对象池再次生成的对象引用覆盖了如...
来源: Laya_社区 发布时间: 20161109
... Laya.loader.load("res/fonts/OPPOSANS-R.TTF", Laya.Handler.create(this, (success: boolean) => { if (!success) { console.error("OPPOSANS-R ttf 字体加载失败"); ...
来源: Laya_社区 发布时间: 20201104
... this.loadFont(); } loadFont() { const BitmapFont = Laya.BitmapFont, Handler = Laya.Handler; Laya.loader.load([{ url: ['res/bitmapFont/test.fnt'], type: Laya.Loader.FONT }], Handler.create(this, () => { console.log('bitmapFont loaded'); ...
来源: Laya_社区 发布时间: 20190225
...: 3 人 cuixueying • 2017-04-07 16:38 第6个参数不是function,是handler,用new Handler或Handler.create的方式去写!
来源: Laya_社区 发布时间: 20170406
.../Assets/PBR Barrel/Materials/Textures/Barrel_AlbedoTransparency.png', Laya.Handler.create(this, function(texture) { mat.albedoTexture = texture; })); //法线贴图 Laya.Texture2D.load('res/threeDimen/scene/PBRMaterialScene/Assets/PBR Barrel/Materials/Textures/Barrel_Normal.png', Laya.Handler.create...
来源: Laya2.0_文档 发布时间: 20210714
...rt SoundManager = Laya.SoundManager; import Browser = Laya.Browser; 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; /...
来源: Laya_社区 发布时间: 20190421
... { url: "res/MainMenu.fui", type: laya.net.Loader.BUFFER } ], Handler.create(this, this.onLoaded)); 资源加载能用其他方式吗? 不可能一个一个加载吧 2019-11-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...
来源: Laya_社区 发布时间: 20191107