大约有 7,357 项符合查询结果, 库内数据总量为 30,933 项。 (搜索耗时: 0.0111 秒)
Laya_社区(6646) Laya2.0_文档(183) Laya3.0_api(118) laya_api(102) Laya2.0_api(90) Laya_示例(86) Laya3.0_文档(75) Laya2.0_示例(57)
...性值** ### 二.UI组件预设 1、比如我们要制作一个自定义的Sprite预设组件,将页面中要制作成预设组件的元素设置好要用的属性值。如图4所示:  (图4) 2、点击右侧的保存预设按钮,将该Sprite节点下的全部组件保存为预...
来源: Laya2.0_文档 发布时间: 20210715
...sion/libs/laya.d3.js:37260:30) 10-15 16:43:46.702: I/LayaBox(3503): at MeshSprite3D.__proto._addComponentInstance (http://stand.alone.version/lib ... 3660:8) 10-15 16:43:46.702: I/LayaBox(3503): at MeshSprite3D.__proto.addComponent (http://stand.alone.version/lib ... 3731:8) 10-15 16:43:46.702: I/La...
来源: Laya_社区 发布时间: 20181015
...te = 2;//加速播放 // 设置画布上的对齐参照物 reference = new Sprite(); this.addChild(reference); reference.pos(0, 0); reference.size(GoldConsts.contextWidth, GoldConsts.contextHeight); reference.graphics.drawRect(0, 0, reference.width, reference.height, "#cccccc"); // 每次舞台尺...
来源: Laya_社区 发布时间: 20180313
...写Laya的命名空间 window.Laya= (function (exports) { ...... exports.Sprite = Sprite; exports.EffectAnimation = EffectAnimation; ..... return exports; })({}))那么出现这个问题的原因是官方在LayaAirIDE类导出部分的代码有变化,在2.6版本中有这样一句: 但这句在2...
来源: Laya_社区 发布时间: 20200809
...flash.display.Loader; import flash.display.MovieClip; import flash.display.Sprite; import flash.events.Event; import flash.net.URLRequest; import flash.system.ApplicationDomain; import flash.system.LoaderContext; public class SwfBinary extends Sprite { public function SwfBinary() { super(); if(stage...
来源: Laya_社区 发布时间: 20151224
...ture2D, priority:1, params:[true]} 场景中初始化MeshTerrainSprite3D: //通过场景中子父级节点寻找可行走区域网格模型 var meshSprite3D:MeshSprite3D = sceneSprite3d.getChildAt(0).getChildAt(0).getChildAt(13) as MeshSprite3D;...
来源: Laya_社区 发布时间: 20170505
...自: /**获取动画 */ public getAni(): void { this.ani = this.owner.sprite3d.getComponent(Laya.Animator); let all = 486; let arr = ["3,21,run,true", "29,59,wolk,true", "70,120,cheer,true", "125,380,dance,true", "393,440,forerake,false", "443,485,backward,true"]; let state: Laya.AnimatorState; c...
来源: Laya_社区 发布时间: 20190802
... laya123 package huamao.layer.ui { import app.TheGame; import laya.display.Sprite; import laya.maths.Rectangle; public class CdSprite extends Sprite { public static const START:int = -90; public static const COLOR:String = "#000000"; private var r:Number = BarCell.WID / Math.SQRT2; private var rect:...
来源: Laya_社区 发布时间: 20171124
...有的uniform属性 var uniformMap = { 'u_MvpMatrix': Laya.Shader3D.PERIOD_SPRITE, 'u_WorldMat': Laya.Shader3D.PERIOD_SPRITE }; //注册CustomShader var customShader = Laya.Shader3D.add("CustomShader"); //创建一个SubShader var subShader = new Laya.SubShader(attributeMap, uniformMap); //我们的...
来源: Laya2.0_文档 发布时间: 20210715
...下,使用graphics就没个问题,放弃animation,直接使用更换 sprite的graphics,自己封装了类,爱加什么功能自己写。 kura • 2019-03-25 12:17 明显可以看到每切换一下动画,都会闪烁一便 kura • 2019-03-25 12:16 https://andyskaura.github.io/ 简单demo...
来源: Laya_社区 发布时间: 20190325