大约有 3,244 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0073 秒)
Laya_社区(2446) Laya3.0_api(242) Laya2.0_文档(138) Laya2.0_api(136) laya_api(135) Laya3.0_文档(77) Laya_示例(52) Laya2.0_示例(18)
...a/components/AnimatorState2D.ts:45 动画播放速度 yoyo yoyo: boolean = false Defined in laya/components/AnimatorState2D.ts:65 是否为一次正播放,一次倒播放模式 Accessors clip get clip(): AnimationClip2D | null set clip(value: AnimationClip2D | null): void Defined in laya/component...
来源: Laya3.0_api 发布时间: 20231115
... Laya.MeshSprite3D; //使可行走区域模型隐藏 meshSprite3D.active = false; var heightMap: Laya.Texture2D = Laya.Loader.getRes("../../res/threeDimen/scene/TerrainScene/Assets/HeightMap.png") as Laya.Texture2D; //初始化MeshTerrainSprite3D this.terrainSprite = Laya.MeshTerrainSprite3D.createF...
来源: Laya_社区 发布时间: 20180309
...ad-only] 表示 Alt 键是处于活动状态 (true) 还是非活动状态 (false)。 Event charCode : Boolean[read-only] 包含按下或释放的键的字符代码值。字符代码值为英文键盘值。 Event ctrlKey : Boolean[read-only] 表示 Ctrl 键是处于活动状态 (true) 还是非...
来源: laya_api 发布时间: 20170929
...自己定义个变量比如isComplete,默认值为true,当该变量为false时,表示处在缓动中,则调用complete(),否则调用to方法同时将该变量设为false,在缓动完成回调函数中将该值设为true。 注意complete()是Tween对象方法,你要这样 var tween:...
来源: Laya_社区 发布时间: 20171122
...Sprite3D off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String = null):EventDispatcher 从 EventDispatcher 对象中删除指定事件类型的所有侦听器。 EventDispatcher on...
来源: laya_api 发布时间: 20170929
...text显示状态 if (own){ if(HostData.array[index].lock){ own.visible = false; }else{ own.visible = true; } } var lock :Button = cell.getChildByName("lock") as Button; if(lock){ lock.visible = HostData.array[index].lock;//默认角色购买锁定状态赋值 lock.disabled =HostData.array[...
来源: Laya_社区 发布时间: 20180522
....skin="comp/button.png"; button2.toolTip=Handler.create(this,showTips,null,false); //携带参数的自定义鼠标提示 var button3:Button=new Button(); Laya.stage.addChild(button3); button3.label="button Three"; button3.pos(400,100); button3.skin="comp/button.png"; button3.toolTip=Handler.create(...
来源: Laya_社区 发布时间: 20161115
...ionAttribute, this.vertexPositionBuffer.itemSize, Laya.WebGLContext.FLOAT, false, 0, 0 ); this.gl.bindBuffer(Laya.WebGLContext.ARRAY_BUFFER, this.textureCoordBuffer); // Check the current orientation of the device combined with the // orientation of the VRSeeThroughCamera to determine the correct UV...
来源: Laya_社区 发布时间: 20180726
...tage.width / 2; ufo.y = Laya.stage.height / 2; ufo.play("ludo_ufo_kaishi", false); ufo.once(Laya.Event.STOPPED, this, () => { ufo.play("ludo_ufo_feixing", true); }); ufo.on(Laya.Event.LABEL, this, (e) => { if (e.name == "xiaoshi") { ufo.offAllCaller(this); // ufo.removeSelf(); } }); })); ...
来源: Laya_社区 发布时间: 20220530
...。 export default class MapSprite extends Laya.Image{ isShow:boolean = false; name:string = ""; constructor() { super(); } loadImageAndPos(name:string,posX:number,posY:number):void { this.name = name; this.anchorX = 0; this.anchorY = 0; this.x = posX; //这里是256*整数倍的叠加 每张...
来源: Laya_社区 发布时间: 20190315