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

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

101. Clip属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 89%]

...割每个切片的宽度 clipWidth、竖向分割每个切片的高度 clipHeight,从左向右,从上到下,分割组合为一个切片动画。 ​ Clip 组件可以用来播放切片动画,和显示切片动画的某一帧图片。 ​ 点击资源面板里的 Clip 组件,拖放到页面...

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

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

...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.alignV = Laya.stage.ALIGN_MIDDLE; Laya.stage.a...

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

103. 如何获取舞台宽高? [ 89%]

如何获取舞台宽高? Laya3D.init(w, h)后 Laya.stage.width和height的值分别为w和h。如何获取实际舞台的宽高?就是类似stage.stageWidth和stage.stageHeight的值 2018-11-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

104. 屏幕适配-缩放-No Border [ 89%]

...teRectPos() { this.rect.x = Laya.stage.width / 2; this.rect.y = Laya.stage.height / 2; } } new SmartScale_Scale_NOBORDER();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_NOBORDER { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.st...

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

105. 屏幕适配-缩放-No Scale [ 89%]

...teRectPos() { this.rect.x = Laya.stage.width / 2; this.rect.y = Laya.stage.height / 2; } } new SmartScale_Scale_NOSCALE();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_NOSCALE { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.stag...

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

106. 区块地图-带动画的地图 [ 89%]

...nal-test-movelayer.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), null); } })();module laya { import Stage = Laya.Stage; import TiledMap = Laya.TiledMap; import Rectangle = Laya.Rectangle; import WebGL = Laya.WebGL; export class TiledMap_AnimationTile { private tiledMap: TiledMap; ...

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

107. 区块地图-PerspectiveWall [ 89%]

.../perspective_walls.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), null); } } new TiledMap_PerspectiveWall();module laya { import Stage = Laya.Stage; import TiledMap = Laya.TiledMap; import Rectangle = Laya.Rectangle; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export ...

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

108. 区块地图-带动画的地图 [ 88%]

...est-movelayer.json", new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height), null); } } new TiledMap_AnimationTile();module laya { import Stage = Laya.Stage; import TiledMap = Laya.TiledMap; import Rectangle = Laya.Rectangle; import WebGL = Laya.WebGL; export class TiledMap_AnimationTile { pr...

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

109. 屏幕适配-缩放-Extract Fit [ 88%]

...teRectPos() { this.rect.x = Laya.stage.width / 2; this.rect.y = Laya.stage.height / 2; } } new SmartScale_Scale_EXTRACT_FIT();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_EXTRACT_FIT { private rect: Sprite; constructor() { Laya.init(550, 400); L...

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

110. 屏幕适配-缩放-Show All [ 88%]

...teRectPos() { this.rect.x = Laya.stage.width / 2; this.rect.y = Laya.stage.height / 2; } } new SmartScale_Scale_SHOW_ALL();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_SHOW_ALL { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.st...

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