大约有 392 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0040 秒)
Laya_社区(261) Laya2.0_文档(45) Laya3.0_api(21) Laya3.0_文档(20) laya_api(15) Laya2.0_api(13) Laya2.0_示例(10) Laya_示例(7)
...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
...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
...行榜 离屏画布不能直接附加到组件纹理上 A:let texture = new Laya.Texture(sharedCanvas); backImage.graphics.drawTexture(texture) B:backImage.texture = texture 1.7版本可以直接把共享画布赋值给组件纹理,2.0不行(A,B两种方法) 报如下错误:...
来源: Laya_社区 发布时间: 20181001
...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
...示自身? 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
....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
...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
... 要回复问题请先登录 发起人 owen7song 相关问题 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 我刚开始使用layabox,发布了一个h5,但是手机上应该怎么打开这个网页呢 在List渲染的时候,在滚动一个l...
来源: Laya_社区 发布时间: 20180820
...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
...个回复被折叠 要回复问题请先登录 发起人 ssmc 相关问题 new Laya.Sprite();绘制图形以后,怎么删除释放资源? 为什么IDE点发布后,把待发布的文件夹里面的libs目录删除,在微信开发工具中各种报错? TextInput的Input事件不监听backspa...
来源: Laya_社区 发布时间: 20180309