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

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

1. 鼠标交互-鼠标交互 [ 100%]

...webgl.WebGL; public class Interaction_Mouse { private var txt:Text; public function Interaction_Mouse() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage....

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

2. 屏幕适配-缩放-No Border [ 99%]

...; public class SmartScale_Scale_NOBORDER { private var rect:Sprite; public function SmartScale_Scale_NOBORDER() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_NOBORDER; Laya.stage.bgColor = "#232628"; createCantralRect(); } private function createCantralRect():void { rect = new Sprite(); ...

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

3. 屏幕适配-缩放-No Scale [ 99%]

...e; public class SmartScale_Scale_NOSCALE { private var rect:Sprite; public function SmartScale_Scale_NOSCALE() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; createCantralRect(); } private function createCantralRect():void { rect = new Sprite(); re...

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

4. 屏幕适配-缩放-Extract Fit [ 99%]

...ublic class SmartScale_Scale_EXTRACT_FIT { private var rect:Sprite; public function SmartScale_Scale_EXTRACT_FIT() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_EXACTFIT; Laya.stage.bgColor = "#232628"; createCantralRect(); } private function createCantralRect():void { rect = new Sprite(...

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

5. 屏幕适配-缩放-Show All [ 99%]

...; public class SmartScale_Scale_SHOW_ALL { private var rect:Sprite; public function SmartScale_Scale_SHOW_ALL() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; createCantralRect(); } private function createCantralRect():void { rect = new Sprite(); r...

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