大约有 1,751 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0081 秒)
Laya_社区(1103) Laya2.0_文档(182) Laya3.0_api(114) Laya2.0_api(105) Laya2.0_示例(83) Laya_示例(70) laya_api(64) Laya3.0_文档(30)
... = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.st...
来源: Laya2.0_示例 发布时间: 20260820
...Stage; import laya.display.Text; import laya.net.Loader; import laya.utils.Handler; import laya.webgl.WebGL; public class Main { public function Main() { Laya.init(640, 960, WebGL); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.bgColor = "#eeffcc"; Laya.loader.load("lang.lang",Handler.create(t...
来源: Laya_社区 发布时间: 20161018
...下,最后回到原大小或原位置,应该用什么缓动模式 Laya.Handler.create和new Laya.Handler有啥区别 Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? mac 用layaair2.0 ide 的编辑模式下,cpu爆满 atlas目录下.json文件与.atlas的区别 LAYAAIR...
来源: Laya_社区 发布时间: 20181219
...ng 赞同来自: 数据源修改后,渲染的时候需要重置下(RenderHandler)状态,如下 修改 //加载数据完毕后触发这个方法 GameMain.prototype.onLoad = function () { this.mainUI = new MainUI(); dataSource = ; this.allData = ["深发展A", "南坡A", "铜陵有色", "丰林集...
来源: Laya_社区 发布时间: 20170207
...生List之后,重写changeCellState方法来,并且同时配合renderHandler来实现? 2017-03-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 可以参考下:把img换成你...
来源: Laya_社区 发布时间: 20170310
...答。 Laya.loader.load("fonts/OPPOSANS-H.ttf", Laya.Handler.create(this, (success) => { console.log("2.8.0 字体加载是否成功:", success); Laya.Text.defaultFont = "OPPOSANS-H"; }), null, Laya.Loade...
来源: Laya_社区 发布时间: 20201118
...le Main { import Sprite = Laya.Sprite import Texture = Laya.Texture import Handler = Laya.Handler export class MaskDemo { private Res: string; private img: Laya.Image; constructor() { //Laya.init(400, 640, Laya.WebGL); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" Laya.Stat.show() //资源...
来源: Laya_社区 发布时间: 20171211
...反射贴图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置材质纹理 material.albedoTexture = texture; })); earth2.meshRenderer.material = material; ``` (图4) ##### 法线贴图 **Normal maps(法线贴图)**是一个...
来源: Laya2.0_文档 发布时间: 20210715
...码也被更改了 为什么官网例子里,UI组件的事件都用new Handler,而资源加载用Handler.create() 问题状态 最新活动: 2025-08-16 12:20 浏览: 356 关注: 3 人 layabox • 2025-08-15 14:45 你不能把宽高全都是全屏呀,都全屏了怎么布局?我们优化一...
来源: Laya_社区 发布时间: 20250815
...反射贴图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置材质纹理 material.albedoTexture = texture; })); earth2.meshRenderer.material = material; ``` (图4) ##### 法线贴图 **Normal maps(法线贴图)**是一个...
来源: Laya2.0_文档 发布时间: 20210714