• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,004 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0065 秒)

211. 1.7.18beta少方法? [ 77%]

...WebGL.mainContext; var preTarget:* = WebGLContext.curBindTexTarget; var preTexture:* = WebGLContext.curBindTexValue; WebGLContext.bindTexture(gl, WebGLContext.TEXTURE_2D, _source); //由于HTML5中Image不能直接获取像素素数,只能先画到Canvas上再取出像素数据,再分别texSubImag...

来源: Laya_社区 发布时间: 20180417

212. BlinnPhong材质详解(ActionScript-3D基础(AS3)-模型材质详解) [ 77%]

...tor4`漫反射颜色。 `albedoIntensity:Number` 漫反射强度。 `albedoTexture:BaseTexture` 漫反射贴图。 `enableLighting:Boolean` 是否启用光照。 `normalTexture:BaseTexture` 法线贴图。 `renderMode:int` [write-only] 设置渲染模式。 `shininess:Number` 高光强度,范围为0...

来源: Laya2.0_文档 发布时间: 20210714

213. laya的drawToTexture太坑 [ 77%]

laya的drawToTexture太坑 我之前做flash as3的,默认认为drawToTexture是要画目标sprite里面的0,0点。 结果怎么画都没有东西显示,看了下源码发现,里面把它自己(该sprite)的x, y给减掉了, 所以我只能每次在drawToTexture的两个offset参数里...

来源: Laya_社区 发布时间: 20200330

214. IDE打开某个场景时弹处弹框报错:对[Dialog]的texture属性赋值时遇错误:cannot read property 'width' of null [ 77%]

IDE打开某个场景时弹处弹框报错:对[Dialog]的texture属性赋值时遇错误:cannot read property 'width' of null 对[Dialog]的texture属性赋值时遇错误:cannot read property 'width' of null 附件 : --> 2020-02-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

来源: Laya_社区 发布时间: 20200202

215. 设置滤镜(JavaScript-LayaAir基础篇(JS)-位图) [ 77%]

...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

216. htmlCanvas.toBase64在iPhone上转换结果错误 [ 77%]

...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

217. laya.ui.ColorPicker [ 77%]

...手动刷新。 注意: 1.Sprite tag : * 对象的标签。 Component texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer...

来源: laya_api 发布时间: 20170929

218. laya.html.dom.HTMLIframeElement_API3.0 [ 77%]

...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

219. laya.ui.CheckBox [ 77%]

...omponent text : Text[read-only] 按钮文本标签 Text 控件。 Button texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.time...

来源: laya_api 发布时间: 20170929

220. 3D性能优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 77%]

...1, 0, 0] }, u_AlbedoColor: { type: Color, default: [1, 1, 1, 1] }, u_AlbedoTexture: { type: Texture2D, options: { define: "ALBEDOTEXTURE" } }, u_NormalTexture: { type: Texture2D, options: { define: "NORMALTEXTURE" } }, u_NormalScale: { type: Float, default: 1.0, range: [0.0, 2.0] }, u_Metallic: { ty...

来源: Laya3.0_文档 发布时间: 20251010