大约有 1,011 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0084 秒)
Laya_社区(717) Laya3.0_api(68) Laya2.0_api(59) laya_api(56) Laya2.0_文档(47) Laya3.0_文档(27) Laya_示例(27) Laya2.0_示例(10)
...nction(){ /** * 地板类 */ function Floor(){ //背景贴图纹理 this.bgTexture = null; //背景 this.bg = null; Floor.__super.call(this); } //Floor 是一个显示对象 继承此 Sprite Laya.class(Floor, "Floor", laya.display.Sprite); var _proto = Floor.prototype; _proto.init = function(){ //...
来源: Laya_社区 发布时间: 20160728
...WebGL.mainContext; var preTarget:* = WebGLContext.curBindTexTarget; var preTexture:* = WebGLContext.curBindTexValue; WebGLContext.bindTexture(gl, WebGLContext.TEXTURE_2D, _source); //由于HTML5中Image不能直接获取像素素数,只能先画到Canvas上再取出像素数据,再分别texSubImag...
来源: Laya_社区 发布时间: 20180417
...tor4`漫反射颜色。 `albedoIntensity:Number` 漫反射强度。 `albedoTexture:BaseTexture` 漫反射贴图。 `enableLighting:Boolean` 是否启用光照。 `normalTexture:BaseTexture` 法线贴图。 `renderMode:int` [write-only] 设置渲染模式。 `shininess:Number` 高光强度,范围为0...
来源: Laya2.0_文档 发布时间: 20210714
laya的drawToTexture太坑 我之前做flash as3的,默认认为drawToTexture是要画目标sprite里面的0,0点。 结果怎么画都没有东西显示,看了下源码发现,里面把它自己(该sprite)的x, y给减掉了, 所以我只能每次在drawToTexture的两个offset参数里...
来源: Laya_社区 发布时间: 20200330
IDE打开某个场景时弹处弹框报错:对[Dialog]的texture属性赋值时遇错误:cannot read property 'width' of null 对[Dialog]的texture属性赋值时遇错误:cannot read property 'width' of null 附件 : --> 2020-02-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20200202
...ya.Sprite; var Stage = Laya.Stage; var ColorFilter = Laya.ColorFilter; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var ApePath = "../../res/apes/monkey2.png"; var apeTexture; (function() { // 不支持WebGL时自动切换至Canvas Laya....
来源: Laya2.0_文档 发布时间: 20210714
...Sp.drawToCanvas(200, 200, 0, 100); //截取精灵图片绘制到Canvas var texture = htmlCanvas.getTexture(); //获取纹理 StageUI.instance.saveTexture.graphics.drawTexture(texture, 0, 0, 0, 0);//绘制截取到的纹理 //可以获得base64位图,用于保存或上传到服务器 StageUI.inst...
来源: Laya_社区 发布时间: 20190111
...手动刷新。 注意: 1.Sprite tag : * 对象的标签。 Component texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer...
来源: laya_api 发布时间: 20170929
...otation scaleX scaleY scene scrollRect skewX skewY stage staticCache style texture timer transform url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addInputChild callLater clearTimer contains customRender destr...
来源: Laya3.0_api 发布时间: 20231102
...omponent text : Text[read-only] 按钮文本标签 Text 控件。 Button texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.time...
来源: laya_api 发布时间: 20170929