大约有 3,979 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0070 秒)
Laya_社区(2827) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(53)
...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
...his, onLoaded)); function onLoaded() { // //创建一个Animation实例 // var tl = new Laya.Animation(); // //加载动画文件 // tl.loadAnimation("test.ani"); // //添加到舞台 // Laya.stage.addChild(tl); // //播放Animation动画 // tl.play(); //创建一个新的Animation实例 var tl2 = n...
来源: Laya_社区 发布时间: 20190708
...本,并且绑定 _text 文本 ```typescript //创建一个动画状态 var state2 = new Laya.AnimatorState(); state2.name = "ride"; state2.clipStart = 0 / 581; state2.clipEnd = 33 / 581; state2.clip = animator.getDefaultState().clip; state2.clip.islooping = true; //给该动画状态添加脚本 v...
来源: Laya2.0_文档 发布时间: 20210715
...\n?? 1、使用Text组建创建一个文本区域,显示一段文字varTxt,设定 wordWrap=true。即设定其自动换行,并且固定宽度而不固定高度。 此时一切正常,文本内容超过设定的宽度之后,会自动进行换行。 2、在该文本变量varTxt中添加\n...
来源: Laya_社区 发布时间: 20180722