大约有 3,990 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0070 秒)
Laya_社区(2836) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(55)
...is, void 0, void 0, function* () { cache.setResourceID('appurl', urlpath); var curassets = cache.getResourceID('netassetsid'); var assetsidStr = (yield asyncs.downloadSync(urlpath + 'update/assetsid.txt?rand=' + Math.random() * Date.now(), false, null)); console.log("assetsid old:" + curassets + " n...
来源: Laya_社区 发布时间: 20180111
...hp) { Hero.__super.call(this); this.fly(); } Laya.class(Hero,"Hero", Air); var _proto = Hero.prototype; _proto.fly = function() { this.playAction("fly") } })(); air类: (function() { function Air(type, hp) { this.hp = hp; this.type = type; this.body = null; Air.__super.call(this); this.init(); } L...
来源: Laya_社区 发布时间: 20180911
...aya.Handler.create(this,this.onSceneOK)); } onSceneOK() { //添加3D场景 var scene = Laya.loader.getRes("monkey/monkey.ls"); Laya.stage.addChild(scene); //从场景中获取摄像机 var camera = scene.getChildByName("Main Camera"); //后续对摄像机的逻辑操作....... } } ``` 在Untiy...
来源: Laya2.0_文档 发布时间: 20210714
...isplay从节点树移除时调度。NodeProperty Detailcolorpropertypublic var color:Vector3 灯光颜色。 diffuseColorproperty diffuseColor:Vector3 获取灯光的漫反射颜色。 Implementation public function get diffuseColor():Vector3 public function set diffuseColor(value:Ve...
来源: Laya2.0_api 发布时间: 20190513
... 组装充值相关参数. (参数意义参见本文末尾处的附录1) var json= '{"order_id":"OriderID_20160824_9824","amount":1,"product_id":"Laya.joychina.test","callback_uri":"http://186.152.54.225:8800/Apple.pay"}'; // JavaScript中 调用充值函数. (这里会调用原生开发...
来源: Laya2.0_文档 发布时间: 20210715
..._CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; var txt:Laya.Text = new Laya.Text(); //设置文本内容 txt.text = "hello_world"; //设置文本区背景 txt.bgColor = "#c30c30"; //设置文本的宽高 txt.width = 400; txt.height = 400; //设置文本水平居中 txt.al...
来源: Laya2.0_文档 发布时间: 20210714
...a.Event.MOUSE_UP, this, this.finishScroll); } function scrollText(){ var nowX=this.txt.mouseX; var nowY=this.txt.mouseY; 下面加粗的X和Y必须是大写的不然文字移动不了 至于什么原因没搞清楚 知道的麻烦说一下 this.txt.scrollX += this.prevX-nowX;...
来源: Laya_社区 发布时间: 20170810
...我就是想把二维码要绘制的div传过去,代码如下: __JS__('var qrcode = new QRCode(document.getElementById("qrcode"), {width:100, height:100});'); 范例中的代码本身是这样子的: <body> <div id="qrcode" style="width:100px; height:100px; margin-top:15px;"></d...
来源: Laya_社区 发布时间: 20170817
...t renderMode(value:int):voidSHADERDEFINE_ADDTIVEFOGproperty public static var SHADERDEFINE_ADDTIVEFOG:intSHADERDEFINE_MAINTEXTUREproperty public static var SHADERDEFINE_MAINTEXTURE:intSHADERDEFINE_TILINGOFFSETproperty public static var SHADERDEFINE_TILINGOFFSET:inttextureproperty texture:BaseTex...
来源: Laya2.0_api 发布时间: 20190513
...t renderMode(value:int):voidSHADERDEFINE_ADDTIVEFOGproperty public static var SHADERDEFINE_ADDTIVEFOG:intSHADERDEFINE_MAINTEXTUREproperty public static var SHADERDEFINE_MAINTEXTURE:intSHADERDEFINE_TILINGOFFSETproperty public static var SHADERDEFINE_TILINGOFFSET:inttextureproperty texture:BaseTex...
来源: Laya2.0_api 发布时间: 20190513