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

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

61. Sprite optimizeScrollRect = true 似乎有问题 [ 92%]

...问题 this.initMask = function () { this.mask = new Sprite(); this.mask.width = this.width; this.mask.height = this.height; this.mask.scrollRect = new Rectangle(); this.mask.scrollRect.setTo(0, 0, this.width, this.height); this.mask.optimizeScrollRect = true; this.addChild(this.mask); } this.initCo...

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

62. Tween的to方法完成缓动后的回调怎么写,Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,aaa,0,false);aaa是一个测试方法 [ 92%]

...法完成缓动后的回调怎么写,Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,aaa,0,false);aaa是一个测试方法 2017-01-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 zhpr613 赞同来自: cuix...

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

63. 使用高度图的时候 Cannot read property 'width' of undefined [ 92%]

使用高度图的时候 Cannot read property 'width' of undefined var terrainSprite = Laya.MeshTerrainSprite3D.createFromMeshAndHeightMap(terrain.meshFilter.sharedMesh, texture, 45.58879852294922, -45.58879852294922); //报错:Cannot read property 'width' of undefinedDemo见附件。   附件 :...

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

64. screenMode 设置成vertical后,width和hight获取问题 [ 92%]

screenMode 设置成vertical后,width和hight获取问题 横向拉伸浏览器,变大的是Laya.stage.clientHeight,而不是laya.stage.clientWidth, 2017-07-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复...

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

65. 滤镜-颜色滤镜 [ 92%]

... = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Laya.Handler...

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

66. 微信小游戏iPhone X 等解决方案 [ 92%]

...。    1.代码层 //获取真机分辨率 x 2,实际尺寸 var SCREEN_WIDTH = Laya.Browser.clientWidth*2; var SCREEN_HEIGHT = Laya.Browser.clientHeight*2; //引擎自带适配方案 Laya.init(SCREEN_WIDTH,SCREEN_HEIGHT, Laya.WebGL); Laya.stage.scaleMode =Laya.stage.SCALE_FIXED_WIDTH; Laya.stage.a...

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

67. IDEbug!应用在设置了left与right布局属性的list上的render如果没有设置width则IDE会卡死! [ 91%]

...在设置了left与right布局属性的list上的render如果没有设置width则IDE会卡死! 如题! 在IDE中,一个需要适配宽度的List,设置了 left 与 right 属性为0,当设置List的render对象的width为空或者为0,以自适应list宽度时,IDE卡死!! 2017-09-26...

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

68. laya.display.cmd.DrawEllipseCmd_API3.0 [ 91%]

...d Hierarchy DrawEllipseCmd Index Properties fillColor height lineColor lineWidth percent width x y ID Methods getBoundPoints recover Properties fillColor fillColor: any Defined in laya/display/cmd/DrawEllipseCmd.ts:27 填充颜色,或者填充绘图的渐变对象。 height height: number Defined ...

来源: Laya3.0_api 发布时间: 20231115

69. laya.display.cmd.DrawRectCmd_API3.0 [ 91%]

...形 Hierarchy DrawRectCmd Index Properties fillColor height lineColor lineWidth percent width x y ID Methods getBoundPoints recover Properties fillColor fillColor: any Defined in laya/display/cmd/DrawRectCmd.ts:31 填充颜色,或者填充绘图的渐变对象。 height height: number Defined in l...

来源: Laya3.0_api 发布时间: 20231115

70. UI-ProgressBar [ 91%]

...progressBar = new ProgressBar("../../res/ui/progressBar.png"); progressBar.width = 400; progressBar.x = (Laya.stage.width - progressBar.width) / 2; progressBar.y = Laya.stage.height / 2; progressBar.sizeGrid = "5,5,5,5"; progressBar.changeHandler = new Handler(this, onChange); Laya.stage.addChild(pr...

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