大约有 4,338 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0089 秒)
Laya_社区(2450) Laya3.0_api(673) Laya2.0_api(357) laya_api(289) Laya2.0_文档(271) Laya_示例(157) Laya2.0_示例(116) Laya3.0_文档(25)
...ic class Text_BitmapFont { private var fontName:String = "diyFont"; public function Text_BitmapFont() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.sc...
来源: Laya2.0_示例 发布时间: 20241126
...; var point = new Laya.Vector2(); var _outHitInfo = new Laya.RaycastHit(); function checkHit() { //从屏幕空间生成射线 point.elements[0] = Laya.MouseManager.instance.mouseX; point.elements[1] = Laya.MouseManager.instance.mouseY; camera.viewportPointToRay(point, ray); //射线检测获取所...
来源: Laya_示例 发布时间: 20241126
... public var camera:Camera; public function MainPageController(){ super(); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; Scen...
来源: Laya_社区 发布时间: 20190328
...small); this.big_map.selectHandler = new Laya.Handler(this, onSelect_big); function onSelect_small(e) { Laya.big_switch = 0 Laya.maptype = "small" this.now_map.text = "当前地图:" + this.small_map.selectedLabel Laya.map_small_c = e } function onSelect_big(e) { if (e != 0) { if (Laya.keys > 0...
来源: Laya_社区 发布时间: 20180719
...下方法 /** *设置容器的点击区域 */ __proto.setContentHitArea = function () { var content=this._content; var rect = new Laya.Sprite(); rect.graphics.drawRect(0, 0, this.contentWidth, this.contentHeight, "#000000"); content.hitArea = new Laya.HitArea(); content.hitArea.hit = rect.graphics; ...
来源: Laya_社区 发布时间: 20170610
...@ gamePage.html:156 WAGame.js:3 gameThirdScriptError window.focus is not a function TypeError: window.focus is not a function at Function.Browser.__init__ (http://127.0.0.1:51176/game/code.js:7140:21) at Function._$GET_clientWidth (http://127.0.0.1:51176/game/code.js:7057:11) at ht...
来源: Laya_社区 发布时间: 20180510
...前加载资源,在回调中进行操作设置 text_load_width_height(); function text_load_width_height() { Laya.init(600,400); Laya.loader.load(["../laya/assets/comp/image.png","../laya/assets/comp/vscroll.png"],Laya.Handler.create(this,onAssetLoad)); } function onAssetL...
来源: Laya_社区 发布时间: 20170118
...ESIZE:String = "sharedresize"; private static var _i:MsgMgr = null; public function MsgMgr() { super(); } public static function get instance():MsgMgr { return _i ||= new MsgMgr(); } /**初始化消息监听**/ public function init():void { //接收主域透传的数据 if(MiniAdpter.isZiYu &&am...
来源: Laya_社区 发布时间: 20180525
...组件实例。 Node addInputChild(node:Node):NodeNode callLater(method:Function, args:Array = null):void 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 Node clearTimer(caller:*, method:Function):void 清理定时器。功能同Laya.time...
来源: Laya2.0_api 发布时间: 20190513
.../jni/../../../../../js-bindings/jsb_rt_file_system_manager.cpp: Line: 990, Function: FileSystemManager_readFile 01-06 11:41:34.676 5287-5417/? E/jswrapper: [ERROR] Failed to invoke FileSystemManager_readFile, location: /Users/80235882/project/XGame/instant-game-client/android/lib-rt-core/src/main/jn...
来源: Laya_社区 发布时间: 20210106