大约有 203 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0087 秒)
...话只水平居中没有垂直居中。 调试的时候,在Layout.layout(this),跳进去 在Layout._multiLineLayout(element)里面的updatePos(0,tWidth,i,tY,align,valign,lineHeight)函数里对元素根据对齐方式重新设置坐标。这里面感觉对垂直居中的y坐标的计算方式...
来源: Laya_社区 发布时间: 20180104
...annel extends Laya.SoundChannel { constructor(audio, miniSound) { super(); this._audio = audio; this._miniSound = miniSound; this._onEnd = MiniSoundChannel.bindToThis(this.__onEnd, this); audio.onEnded(this._onEnd); } static bindToThis(fun, scope) { var rst = fun; rst = fun.bind(scope); return rst; ...
来源: Laya_社区 发布时间: 20200103
... __getset(0,__proto,'dataSource',function(){ return this._dataSource; },function(value){ this._dataSource=value; for (var prop in this._dataSource){ if (this.hasOwnProperty(prop)&& !((typeof (this[...
来源: Laya_社区 发布时间: 20190803
...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void contains contains(node: Node): boolean Inherited from Node.contains Defined in laya/display/Node.ts:546 当前容器是否包含指定的 Node 节点对象 ...
来源: Laya3.0_api 发布时间: 20231115
...可做的操作 list.selectEnable = true; list.selectHandler = new Handler(this, this.onSelect); // 滚动条的橡皮筋操作:回弹时间及弹性距离 list.scrollBar.elasticBackTime = 200; list.scrollBar.elasticDistance = 5; Laya.stage.addChild(list); // 设置数据项为对应图片的路...
来源: Laya_社区 发布时间: 20180410
截屏无法实现 View gameView = mPlugin.game_plugin_get_view(); this.setContentView(gameView); 这个gameView应该就是游戏显示视图,但获取出来是空的,屏幕保存成文件全是黑的 现在不知道用什么方法进行截屏了 2017-04-23 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20170423
... = laya.d3.math.Quaternion; /* 用法: //初始化照相机 var camera = this.newScene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera; camera.transform.rotationEuler = new Laya.Vector3(-32, -75, 0); camera.transform.position =new Laya.Vector3(-8.2, 5.3, 2.2); var modelViewer = camera.addCom...
来源: Laya_社区 发布时间: 20170714
...多个.sk 资源,加载后使用是如何获取,并且创建动画? this.sk_86.loadAni("birdami_86.sk"); this.sk_87.loadAni("birdami_87.sk"); 这样是加载后的回调,没有达到预加载效果 this.sk_86.buildArmature(1); 有其他方法提供参考一下吗?谢谢 2017-08-29 添加...
来源: Laya_社区 发布时间: 20170829
...模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 this.init(); } private init(): void { var animation:Animation = new Laya.Animation();//创建一个 Animation 类的实例对象 animation 。 animation.loadAtlas("resource/ani/fighter.json");//加载图集并播放 animation....
来源: Laya3.0_api 发布时间: 20231115
...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void clone clone(): Node Inherited from RenderableSprite3D.clone Defined in laya/d3/core/Sprite3D.ts:300 克隆。 Returns Node 克隆副本。 contains contains(n...
来源: Laya3.0_api 发布时间: 20231115