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

大约有 1,738 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0073 秒)

151. 滤镜-发光滤镜 [ 86%]

...tion() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Handler.create(t...

来源: Laya_示例 发布时间: 20240929

152. UI-Input [ 86%]

...ndler = Laya.Handler; var WebGL = Laya.WebGL; var SPACING = 100; var INPUT_WIDTH = 300; var INPUT_HEIGHT = 50; var Y_OFFSET = 50; var skins; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CEN...

来源: Laya_示例 发布时间: 20240929

153. laya.map.TiledMap [ 86%]

... TiledMap  gridHeight : Number[read-only] 块的高度 TiledMap  gridWidth : Number[read-only] 块的宽度 TiledMap  height : int[read-only] 地图的高度 TiledMap  numColumnsGrid : Number[read-only] 地图的横向块数 TiledMap  numColumnsTile : int[read-only] 地图横向的格子...

来源: laya_api 发布时间: 20170929

154. laya.map.TiledMap [ 86%]

... TiledMap  gridHeight : Number[read-only] 块的高度 TiledMap  gridWidth : Number[read-only] 块的宽度 TiledMap  height : int[read-only] 地图的高度 TiledMap  numColumnsGrid : Number[read-only] 地图的横向块数 TiledMap  numColumnsTile : int[read-only] 地图横向的格子...

来源: Laya2.0_api 发布时间: 20190513

155. 截屏问题className:layaair/game/browser/ExportJavaFunction,methodName:captureScreen [ 86%]

...1 赞同来自: if( window.conch ) { var content=Laya.Browser.context; var width=800; var height=500; window.conch.captureScreen(function(content,width,height){ conch.saveAsPng( content,width,height,conch.getCachePath()+"/test.png" ); }) }   2018-02-27 0 5 分享 微博 QZONE 微信 为什么被折...

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

156. laya.resource.RenderTexture2D [ 86%]

...sourceHeight : Number[read-only] 获取高度。 RenderTexture2D  sourceWidth : Number[read-only] 获取宽度。 RenderTexture2D wrapModeU : int 获取纹理横向循环模式。 BaseTexture wrapModeV : int 获取纹理纵向循环模式。 BaseTexturePublic Methods Hide Inherited Public Method...

来源: Laya2.0_api 发布时间: 20190513

157. UI-Input [ 86%]

...发语言、LayaAirIDE让项目开发更高效。let SPACING = 100, INPUT_WIDTH = 300, INPUT_HEIGHT = 50, Y_OFFSET = 50, skins; class UI_Input { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动...

来源: Laya2.0_示例 发布时间: 20240929

158. 求问sprite放大后,graphics绘制的图像位置偏移 [ 86%]

...getRes(this.skin_img1); sprite.graphics.drawTexture(texture, 0, 0, texture.width, texture.height); sprite.size(texture.width, texture.height); let x: number = 300; let y: number = 100; let scaleRatio: number = 1.3; sprite.pos(x, y); // sprite.graphics.drawCircle(texture.width/2, texture.height/2, 10...

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

159. UI模式下Dialog标签嵌套RadioGroup会导致编辑器卡死 [ 86%]

...UI模式下Dialog标签嵌套RadioGroup会导致编辑器卡死 <Dialog width="725" sceneColor="#000000" height="500" editorInfo="compId=1"> <Image y="46" x="0" width="687" skin="setting/gd2_n.png" sizeGrid="30,30,30,30" height="402" editorInfo="compId=4"> <Image y="0" x="241.5" skin=...

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

160. 画布宽高的问题 [ 86%]

...的宽和高为啥都是0呢,舞台是有内容的啊 trace(Laya.stage.width + "-" + Laya.stage.height); trace(Browser.clientWidth + "--" + Browser.clientHeight); trace(Browser.width + "---" + Browser.height); trace(Browser.canvas.width + "----" + Browser.canvas.height); 以上是输出的代码...

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