• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 3,244 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0073 秒)

921. laya.components.AnimatorState2D_API3.0 [ 65%]

...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

922. 寻路导航示例中添加Laya.PathFind组件报异常 [ 64%]

... 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

923. laya.events.Event [ 64%]

...ad-only] 表示 Alt 键是处于活动状态 (true) 还是非活动状态 (false)。 Event  charCode : Boolean[read-only] 包含按下或释放的键的字符代码值。字符代码值为英文键盘值。 Event  ctrlKey : Boolean[read-only] 表示 Ctrl 键是处于活动状态 (true) 还是非...

来源: laya_api 发布时间: 20170929

924. tween complete 报错 以及如何判断对象正在缓动中 [ 64%]

...自己定义个变量比如isComplete,默认值为true,当该变量为false时,表示处在缓动中,则调用complete(),否则调用to方法同时将该变量设为false,在缓动完成回调函数中将该值设为true。 注意complete()是Tween对象方法,你要这样  var tween:...

来源: Laya_社区 发布时间: 20171122

925. laya.d3.core.RenderableSprite3D [ 64%]

...Sprite3D off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String = null):EventDispatcher 从 EventDispatcher 对象中删除指定事件类型的所有侦听器。 EventDispatcher on...

来源: laya_api 发布时间: 20170929

926. 列表嵌套另外一个列表 [ 64%]

...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

927. ToolTip鼠标悬停的使用 [ 64%]

....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

928. 修改了Scene下的WebGL参数导致渲染3D对象出现局部透明 [ 64%]

...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

929. Spine 间隔一段时间卡顿5000毫秒左右,期间GPU占用极高, Demo已上传 [ 64%]

...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

930. laya.sprite精灵无缝拼接地图,会出现黑线跟白线,使用laya的2.0.1beta版本 [ 64%]

...。   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