大约有 1,499 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0067 秒)
...========== 代码调用: D3Helper.getMaterialByName = function (name) { if (undefined == D3Helper.materialDic[name]) { var material = new Laya.StandardMaterial(); D3Helper.materialDic[name] = material; [b]var testTexture = Laya.Texture2D.load(name);[/b] material.diffuseTexture = testTexture; var ...
来源: Laya_社区 发布时间: 20180206
...下,只循环播放了10-20帧的stand站立动画剪辑。 (图2) #### Unity中定义动画剪辑播放 unity中可以对动画进行分段,并对剪辑的片段取名。 导出的资源在控制时,可通过名称进行动画切换,方便开发者们使用。(这种方式...
来源: Laya2.0_文档 发布时间: 20210715
...下,只循环播放了10-20帧的stand站立动画剪辑。 (图2) #### Unity中定义动画剪辑播放 unity中可以对动画进行分段,并对剪辑的片段取名。 导出的资源在控制时,可通过名称进行动画切换,方便开发者们使用。(这种方式...
来源: Laya2.0_文档 发布时间: 20210715
...yed but you are still trying to access it. Your script should either check if it is null or you should not destroy the object. n.a (UnityEngine.SkinnedMeshRenderer A_0, System.String A_1, System.Boolean A_2) (at <f23f19a62c944610ba98639869d48a79>:0) n.b () (at <f23f19a62c944610ba98639869d48...
来源: Laya_社区 发布时间: 20210607
... mapToDCC || getBaseUrl(appUrl); dcc.init(dccHead, null).then((ok) => { if (ok) { //如果初始化成功,接管native的下载流程 dcc.injectToNative3(); } window.layadcc = layadcc; window.dcc = dcc; loadApp(conch.presetUrl || appUrl); }); 现在native中已经包含这段代码(index.js...
来源: Laya3.0_文档 发布时间: 20251010
...ime = 0; function onFrame() { //如果创建对象时间为100帧间隔后 if (this.createTime >= 100) { //每200帧间隔创建30个雪花 for (var i = 0; i 640 + 20 || img1.scaleX 在一些特殊情况我们需要注意`Laya.Hanlder.create()`的使用方式,我们仔细看图3中的`Laya.Hanlder...
来源: Laya2.0_文档 发布时间: 20210715
...=> { console.log(data); if (data.isDisplay) { wx.getFriendCloudStorage({ success: res => { ...
来源: Laya_社区 发布时间: 20180507
...on createAnimation():void { var url:Array=; for(var i:int=1;i<30;i++) { if(i<10) { url.push("res/fighter/fighter/rollSequence000"+i+".png"); } else { url.push("res/fighter/fighter/rollSequence00"+i+".png"); } } Animation.createFrames(url,"myFighter"); fly=new Animation(); Laya.stage.addChild(f...
来源: Laya_社区 发布时间: 20160610
...形后,mouse_over触发scale显示有问题 private _initView():void { if(this._objectInfo.templateInfo.type == "hole") { this._body = new Sprite(); this._body.graphics.drawCircle(0, 0, this._objectInfo.templateInfo.width, "#ff0000"); this._body.width = this._objectInfo.templateInfo.width; this._b...
来源: Laya_社区 发布时间: 20180308
...通过代码设定Clip相关的属性。 **运行示例效果:**  (图5)通过代码创建计数器  (图6) Clip的其他属性也可以通过代码来设置,上述示例演示了如何通过计时器获取每一秒更新clip.clipX切片,通过...
来源: Laya2.0_文档 发布时间: 20210714