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

大约有 388 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0040 秒)

141. sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale [ 77%]

...orm.position;Laya.Tween.to(box.potOld,{     x:1     ,y:2     ,update:new Laya.Handler(box,function(){         this.transform.position = this.potOld;     }) }, ConstValue.animationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){     console.log("complete"); }),ConstValue....

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

142. laya.d3.math.CollisionUtils_API3.0 [ 77%]

...Point sphereContainsSphere sphereContainsTriangle Constructors constructor new CollisionUtils(): CollisionUtils Defined in laya/d3/math/CollisionUtils.ts:26 创建一个 Collision 实例。 Returns CollisionUtils Methods Static boxContainsBox boxContainsBox(box1: BoundBox, box2: BoundBox): number De...

来源: Laya3.0_api 发布时间: 20231115

143. LayaAir 2.0 微信排行榜 离屏画布不能直接附加到组件纹理上 [ 77%]

...行榜 离屏画布不能直接附加到组件纹理上 A:let texture = new Laya.Texture(sharedCanvas); backImage.graphics.drawTexture(texture)   B:backImage.texture = texture     1.7版本可以直接把共享画布赋值给组件纹理,2.0不行(A,B两种方法) 报如下错误:...

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

144. laya.d3.math.Bounds_API3.0 [ 76%]

...Center setExtent setMax setMin containPoint merge Constructors constructor new Bounds(min?: Vector3, max?: Vector3): Bounds Defined in laya/d3/math/Bounds.ts:130 创建一个 Bounds 实例。 Parameters Optional min: Vector3 min 最小坐标 Optional max: Vector3 max 最大坐标。 Returns Bounds A...

来源: Laya3.0_api 发布时间: 20231115

145. 封装类的时候 怎么在类中表示自身? [ 76%]

...示自身? class BackGround extends Laya.Sprite{ constructor() { super(); new init(); function init() { var bg1 = new Laya.Sprite(); var bg2 = new Laya.Sprite(); //背景图 // box.loadImage("../bin/background.png"); // Laya.stage.addChild(box); bg1.loadImage("../bin/background.png"); this.addChild(...

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

146. 图片不能按轴心旋转 [ 76%]

....stage.scaleMode = 'fixedauto' Laya.stage.screenMode = 'vertical' let bg = new Laya.Sprite(); bg.loadImage("../res/image/interface/intro_bg.png",375,667,1500,1500); bg.pivot(750,750) bg.alpha = 1 bg.rotation = 10图片是正方形的 如上设置过pivot之后 并没有按 正方形中心点旋转 2...

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

147. List组件拖动浏览时item会出现重叠的现象 [ 76%]

...aSourceMediator { constructor() { } public setUp():void { var list: List = new List(); // 渲染的item list.itemRender = ListDataSourceItem; // 设置行列显示的item个数 list.repeatX = 1; list.repeatY = 4; // list居中显示 list.x = (Laya.stage.width - ListDataSourceItem.WID) / 2; list.y = ...

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

148. 这样一个ui怎么做 [ 76%]

... 要回复问题请先登录 发起人 owen7song 相关问题 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 我刚开始使用layabox,发布了一个h5,但是手机上应该怎么打开这个网页呢 在List渲染的时候,在滚动一个l...

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

149. typescipt在一定范围内加载图片按照等比排列 [ 76%]

...p/button.png', 'comp/image.png'];     myTestUI.imgList.renderHandler = new Laya.Handler(this, onImgListRender);   function onImgListRender(box: Laya.Box) {     let model = box.dataSource;     let panel = box.getChildByName('panel') as Laya.Panel;     let img = panel.getChildByName('...

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

150. 怎么删除以前的帖子 [ 76%]

...个回复被折叠 要回复问题请先登录 发起人 ssmc 相关问题 new Laya.Sprite();绘制图形以后,怎么删除释放资源? 为什么IDE点发布后,把待发布的文件夹里面的libs目录删除,在微信开发工具中各种报错? TextInput的Input事件不监听backspa...

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