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

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

1091. 屏幕适配-缩放-No Border [ 70%]

...OBORDER();package { import laya.display.Sprite; import laya.display.Stage; 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"; createCantralRe...

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

1092. 地图,用某张图片平铺如何实现 [ 70%]

...{ import laya.display.Stage; import laya.ui.Image; import laya.utils.Stat; public class ImageRepeatDemo { public function ImageRepeatDemo() { Laya.init(1000,600); Stat.show(10,10); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; var tempWidth:int = 176; var tempHeight:int = 94; var repeatX:int = 5; var ...

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

1093. Unicode与ascii互转对应表 [ 70%]

...整理了一下Unicode与ascii互转对应表再补充一个writeMultiByte public function writeMultiByte(value:String,charSet:String):void         {             value = value + "";             if(charSet=="UNICODE" || charSet=="unicode")             {         ...

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

1094. laya.ui.Box [ 70%]

...| Frames No Frames BoxProperties | Methods | Events Packagelaya.uiClasspublic class BoxInheritanceBox UIComponent Sprite Node EventDispatcher ObjectImplements IBoxSubclasses LayoutBox, List, Panel, ScaleBox, Tree, UIGroup, ViewStack Box 类是一个控件容器类。 Public Properties Hide Inher...

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

1095. 高级应用-基于物理渲染 [ 70%]

...port laya.events.Event; import laya.utils.Stat; /** * ... * @author ... */ public class PBRDemo { public function PBRDemo() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; Stat.show(); var scene:Scene = Laya.stage.addChild(Scene.load(".....

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

1096. laya.d3.component.animator.AvatarMask_API3.0 [ 70%]

...ring search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/component/Animator/AvatarMask" AvatarMask Class AvatarMask 用来描述动画层遮罩 Hierarchy AvatarMask Index Constructors constructor Me...

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

1097. 小游戏的后台切换事件名是什么?? [ 70%]

...了 package { import laya.wx.mini.MiniAdpter; /** * ... * @author lin */ public class ZeroWXAdpter { static public function init():void { MiniAdpter.window.wx.onShow(onShow); MiniAdpter.window.wx.onHide(onHide); } static private function onShow(res):void { console.warn("小游戏回到前台", res);...

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

1098. laya.html.HtmlImage_API3.0 [ 70%]

...ring search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/html/HtmlImage" HtmlImage Class HtmlImage Hierarchy HtmlImage Implements IHtmlObject Index Constructors constructor Properties obj Accessors ele...

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

1099. laya.utils.Delegate_API3.0 [ 70%]

...ring search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/utils/Delegate" Delegate Class Delegate Hierarchy Delegate Index Constructors constructor Accessors count Methods add clear clearForTarget invok...

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

1100. 屏幕适配-缩放-Show All [ 70%]

...HOW_ALL();package { import laya.display.Sprite; import laya.display.Stage; 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"; createCantralRec...

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