大约有 1,054 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0071 秒)
Laya_社区(615) Laya_示例(157) Laya2.0_文档(149) Laya2.0_示例(116) laya_api(7) Laya3.0_文档(5) Laya3.0_api(3) Laya2.0_api(2)
...A5]$"); 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 = font; var r:* = ctx.measureTe...
来源: Laya_社区 发布时间: 20190610
this.bitmap.activeResource is not a function TypeError: this.bitmap.activeResource is not a function if (bitmap&&bitmap._addReference){ bitmap._addReference(); } 这个代码过滤已经加了,但是会报下面这个错 this.bitmap.activeResource is not a function TypeError: this.bitmap....
来源: Laya_社区 发布时间: 20180403
...人脸识别的: Browser.window.$('#mvideo').faceDetection({ complete: function (faces):void { trace("faces: "+ faces); }, error:function (code, message):void { trace('Error: ' + message); } }); Laya_Aaron • 2018-06-25 21:01 之后使用需要用js调 需要用__JS__("里面放j...
来源: Laya_社区 发布时间: 20180625
...huriKenParticle3D._cloneTo (http://222222.com/libs/laya.d3.js:24966:34) at Function._parseSprite3DInstance (http://222222.com/libs/laya.d3.js:6954:20) at Function._parseSprite3DInstance (http://2222.com/libs/laya.d3.js:6953:23) at Function._parseSprite3DInstance (http://22 2021-12-01 17:08:49.363 11...
来源: Laya_社区 发布时间: 20211211
...戏项目。 Scene: the .lh file root type must be Scene,please use other function to load this file.;at api readFile success callback function Error: Scene: the .lh file root type must be Scene,please use other function to load this file. at MyScene.__proto.onAsynLoaded (http://127.0....
来源: Laya_社区 发布时间: 20180317
...aterialScene/Showcase.ls")); scene.once(Laya.Event.HIERARCHY_LOADED, this, function () { var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var skyBox = new Laya.SkyBox(); camera.sky = skyBox; skyBox.textureCube ...
来源: Laya_示例 发布时间: 20260815
...ipt、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Event = Laya.Event; var Socket = Laya.Socket; var Byte = Laya.Byte; var socket; var output; (function() { Laya.init(550, 400); connect(); })(); function connect() { socket = new Socket(); //socket.connect("ec...
来源: Laya_示例 发布时间: 20260815
...eAddChunk (_stream_readable.js:[...] GameInfo.js代码: var GameInfo = (function(_super){ function GameInfo(){ GameInfo.super(this); this.pauseBtn.on(Laya.Event.CLICK, this, this.onPauseBtnClick); this.reset(); } Laya.class(GameInfo, "GameInfo...
来源: Laya_社区 发布时间: 20170416
...nds Sprite { private var urlLoader:URLLoader; private var l:Loader; public function UrlImage() { super(); if(stage) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=null):void { urlLoader=new URLLoader(); urlLoader.dataFormat=URLLoaderDataFormat....
来源: Laya_社区 发布时间: 20151228
...urce.Texture; import laya.utils.Handler; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(700,600); Laya.loader.load('res/apes/monkey2.png',Handler.create(this,onLoaded)) } private function onLoaded():void { var texture:Texture=Loader.getRes('res/apes/monkey2.png'); var sp:Sprite...
来源: Laya_社区 发布时间: 20170414