大约有 3,990 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0069 秒)
Laya_社区(2836) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(55)
...#000;'> <!-------定义变量赋值--------> <script> var acc:String = "123456"; var psd:String = "654321"; </script> <script src='myLaya.max.js' loader='laya'></script> </body> </html> 2017-04-13 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20170413
...ya.utils.Byte; import laya.webgl.WebGL; public class SocketSample { public var socket:Socket; private var byte:Byte; public function SocketSample() { //初始化引擎 this.byte = new Byte(); this.byte.endian = Byte.LITTLE_ENDIAN;//这里我们采用小端; this.socket = new Socket(); this.socket....
来源: Laya_社区 发布时间: 20180202
...X和视图Y就可以了,判断下视图X和视图Y的拖拽范围 譬如var starX:Number=mX - (Laya.stage.mouseX - mLastMouseX); var starY:Number=mY - (Laya.stage.mouseY - mLastMouseY); if(starX<=0) { starX=0; } if(starY<=0) { starY=0 } if(starX>=400) { starX=400 } if(starY>=400) {...
来源: Laya_社区 发布时间: 20170119
...port laya.utils.Stat; import laya.webgl.WebGL; public class Demo { private var num:Number=0;//加载图片的个数 private var sp:Sprite;//显示图片的显示对象容器 private var texture:Texture;//预加载图片的纹理 public function Demo() { Laya.init(800,1000,WebGL); Stat.show(); Laya.s...
来源: Laya_社区 发布时间: 20161107
...模式下使用Tween使模型移动如何写法 //载入并显示鱼模型 var fish = new Laya.MeshSprite3D(Laya.Mesh.load("fish/denglongyu/denglongyuANI-denglongyu.lm")); scene.addChild(fish); var fishmaterial = new Laya.StandardMaterial(); //漫反射贴图 fishmaterial.diffuseTexture = Laya.Textu...
来源: Laya_社区 发布时间: 20170918
...ne11 phone12 max 有时候必现,有时候概率闪退 代码片段: var postProcess = new Laya.PostProcess(); var bloom = new Laya.BloomEffect(); postProcess.addEffect(bloom); GameDefine.Camera.postProcess = pos...
来源: Laya_社区 发布时间: 20210719
request failed status:0 text: IOS HttpRequest var data = { rechargeId:"1", consumerId:"533", } alert(JSON.stringify(data)); hr = new HttpRequest(); hr.once(Event.PROGRESS, this, onHttpRequestProgress); hr.once(Event.COMPLETE, this, onHttpRequestComplete); hr.once(Event.ERROR, this, onHttpRequestErr...
来源: Laya_社区 发布时间: 20170620
...InputSingleline(); Text_InputMultiline(); function Text_InputSingleline(){ var textInput = new Laya.TextInput("单行输入");//创建一个 TextInput 类的实例对象 textInput 。 textInput.wordWrap = true;//设置 textInput 的文本自动换行。 textInput.fontSize = 30;//设置 textInput 的...
来源: Laya2.0_文档 发布时间: 20210714
...leton.destroy(); 再调用下面代码,新建模板并且创建骨骼 var sk:Skeleton=new Skeleton(); var templet:Templet = new Templet(); templet.parseData(texture, arrbuffer, 20); sk.init(templet); 然后报错 Cannot read property 'enableMerageInAtlas' of null RunDriver.addTextureToAtla...
来源: Laya_社区 发布时间: 20170222
...quest Payload,不是Form Data 不添加headers则正常 示例代码 var headers = [ 'C-Sign', sign ]; // this.caller = caller; this.callbackHandler = callback; // this.errcallback = errcallback; //this.http.once(Laya.Event.PROGRESS, this, this.onHttpRequestProgress); this.http.once(Laya.Event...
来源: Laya_社区 发布时间: 20180916