大约有 6,598 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0192 秒)
Laya_社区(5247) Laya3.0_api(482) Laya2.0_文档(363) Laya_示例(154) Laya2.0_示例(116) Laya3.0_文档(105) Laya2.0_api(67) laya_api(64)
...定皮肤类。当Button初始化(被加到显示列表)的时候,就会new一个ButtonSkin的实例,并添加ButtonSkin里所有子项到显示列表。 zengjoeng • 2018-02-01 14:31 你给的例子,皮肤还是继承显示对象的。 zengjoeng • 2018-02-01 15:35 能还是不能?
来源: Laya_社区 发布时间: 20180201
...要回复问题请先登录 发起人 186*****554 相关问题 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 Layaair IDE的帧属性面板不见了 请问有没有方...
来源: Laya_社区 发布时间: 20180508
...使用的动态加载js的脚本。 function onLoadComplete() { pBar = new ProgressBar(AssetsDir+"./assets/progressBar.png"); pBar.width = Laya.stage.width/2;//400; pBar.x = (Laya.stage.width - pBar.width) / 2; pBar.y = Laya.stage.height / 2; 。。。 }这是 progressBar 资源加载完毕之后...
来源: Laya_社区 发布时间: 20180316
...h) { Browser.window.conch.setFontFaceFromBuffer("hu",arr); } var text:Text=new Text(); text.font="hu"; text.fontSize=50; text.text="لحسن نهر123"; text.pos(100, 100); text.width = 500; text.height = 500; Laya.stage.addChild(text); } 参考该贴加载字体方式: https://ask.layabox.com/...
来源: Laya_社区 发布时间: 20180705
...restore start destroyUnusedResources popRT pushRT Constructors constructor new RenderTexture2D(width: number, height: number, format?: RenderTargetFormat, depthStencilFormat?: RenderTargetFormat): RenderTexture2D Overrides BaseTexture.constructor Defined in laya/resource/RenderTexture2D.ts:107 Param...
来源: Laya3.0_api 发布时间: 20231115
...); } private onLoadComplete(e: any = null): void { let ta: Laya.TextArea = new Laya.TextArea(""); ta.skin = this.skin; ta.font = "Arial"; ta.fontSize = 18; ta.bold = true; ta.color = "#3d3d3d"; ta.pos(100, 15); ta.size(375, 355); ta.padding = "70,8,8,8"; this.owner.addChild(ta); } } (代码中的...
来源: Laya3.0_文档 发布时间: 20251010
... private typeLines = ; //利用关键字重新划分文本 private underLineWidth = 0; //下划线长度 private underColor = ""; //下划线颜色 /** * 渲染文字 * @param begin * @param visibleLineCount */ renderText(begin, visibleLineCount) { var graphics = this.graphics; graphics.clear(true);...
来源: Laya_社区 发布时间: 20180417
...D); // 1. 创建 Laya.Animation 并挂到角色节点 this.iceMonsterAni = new Laya.Animation(); this.owner.addChild(this.iceMonsterAni); this.iceMonsterAni.visible = false; // 默认隐藏 // 2. 开始加载 this.loadMcClips(); } /* ------------------------------------------------- * 对外唯一...
来源: Laya_社区 发布时间: 20251211
...nimation), null, Loader.ATLAS); function createAnimation() { var ani = new Animation(); ani.loadAtlas(AniConfPath); // 加载图集动画 ani.interval = 1000; // 设置播放间隔(单位:毫秒) ani.index = 0; // 当前播放索引 console.log(ani.index); ani.play()...
来源: Laya_社区 发布时间: 20160712
...辑了图片 执行代码说加载不出来资源 这个是怎么回事? new Laya.Sprite();绘制图形以后,怎么删除释放资源? LayaAirIDE1.4版本里用TS引擎库使用view嵌套发布html5报"Uncaught TypeError:Cannot set property 'y' of null"的解决方案 用Mac下Unity5.6.2f1导...
来源: Laya_社区 发布时间: 20190528