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

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

1981. 屏幕适配-屏幕适配 [ 51%]

...; import laya.events.Event; import laya.ui.Image; import laya.webgl.WebGL; public class SmartScale_T { //所有适配模式 private var modes:Array = ["noscale", "exactfit", "showall", "noborder", "full", "fixedwidth", "fixedheight"]; //当前适配模式索引 private var index:int = 0; //全局文...

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

1982. swf版本运行时图片资源不存在报错不清楚的问题 [ 51%]

...楚 建议修改源码方式(需改两个类): laya.flash.FlashImage public function set src(value:String):void 75行后加入代码 tl.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, function ceroor(_ev:IOErrorEvent):void { onerror && onerror(); }); laya.ui.Image 167行 prot...

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

1983. laya.physics.joint.PulleyJoint_API3.0 [ 51%]

...ring search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/physics/joint/PulleyJoint" PulleyJoint Class PulleyJoint 滑轮关节:它将两个物体接地(ground)并彼此连接,当一个物体上升...

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

1984. Mesh网格-自定义网格 [ 51%]

...import common.CameraMoveScript; import common.Tool; /** * ... * @author */ public class CustomMesh { public function CustomMesh() { 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(new Scen...

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

1985. 请问我看错了吗??文档问题 [ 51%]

...式版本,内容如下 ,跟你的不同,兄弟你去升级一上吧。 public static function destroyUnusedResources(group:String = null):void { var res:Resource; if (group) { var resouList:Vector.<Resource> = _groupResourcesMap[group]; if (resouList) { var tempResouList:Vector.<Resourc...

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

1986. 关于HttpRequest [ 51%]

...false 是否进行URL编码,默认为true * * return URL参数字符串 */ public static urlEncode(param:any, key?:any, encode:boolean = true):string{ if (param == null) return ''; var paramStr = ''; var t = typeof (param); if (t == 'string' || t == 'number' || t == 'boolean') { paramStr += '&' ...

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

1987. 仅在Android微信小游戏下图片错乱 [ 51%]

仅在Android微信小游戏下图片错乱 static preLoadPublicAssets(){ this.sAssetList = Loader.getRes("file_list.json") Laya.loader.load("res/ui/share@atlas0.png", Handler.create(this, this.onLoaded), null, Loader.IMAGE, 1, true, null, true) } static onLoaded(res){ console.log("public assets in...

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

1988. 关于mouseThough=true的问题 [ 51%]

...hitarea,可以设置多边形点击区域 shiyang • 2018-03-14 15:50 public function LateTest() { Laya.init(400,400,WebGL); Laya.stage.bgColor = "#ff0000"; // trace(Laya.timer.toString()); // Laya.timer.callLater(this,onLater); // trace(Laya.timer.toString()); var assets:Array = []; as...

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

1989. laya 1.0 源码中 RunDriver.as里measureText的问题 [ 51%]

...xp = new RegExp("^[\u4E00-\u9FA5]$"); private static var fontMap:Array = ; public static var measureText:Function = function(txt:String, font:String):* { var isChinese:Boolean = hanzi.test(txt); if (isChinese && fontMap[font]) { return fontMap[font]; } var ctx:* = Browser.context; ctx.font =...

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

1990. 混合模式-Lighter [ 51%]

...port laya.utils.Handler; import laya.utils.Tween; import laya.webgl.WebGL; public class BlendMode_Lighter { // 一只凤凰的分辨率是550 * 400 private const phoenixWidth:int = 550; private const phoenixHeight:int = 400; private var bgColorTweener:Tween = new Tween(); private var gradientInterva...

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