大约有 1,723 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0109 秒)
Laya_社区(1004) Laya3.0_api(243) Laya2.0_示例(91) Laya_示例(90) Laya2.0_文档(89) Laya2.0_api(82) laya_api(75) Laya3.0_文档(49)
...位置,也可以在属性输入框中设置固定值。 ### 3.2 width、height宽高属性 在不改变组件大小的情况下,组件的宽高虽会自动计算,但在属性面板中并不会显示出来。当通过约束框或固定值设置对组件进行了缩放重置后,宽高属性会...
来源: Laya2.0_文档 发布时间: 20210715
...//生成随机值半径和高 let raidius = Math.random() * 0.2 + 0.2; let height = Math.random() * 0.5 + 0.8; //创建圆锥形3D模型节点对象 let cone = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createCone(raidius, height)); //把圆锥形3D节点对象添加到3D场景节点下 this.newScene....
来源: Laya2.0_文档 发布时间: 20210715
...位置,也可以在属性输入框中设置固定值。 ### 3.2 width、height宽高属性 在不改变组件大小的情况下,组件的宽高虽会自动计算,但在属性面板中并不会显示出来。当通过约束框或固定值设置对组件进行了缩放重置后,宽高属性会...
来源: Laya2.0_文档 发布时间: 20210714
...exture2, 0, 0); //把草垛居底部显示 // this.grass.y = Browser.clientHeight - this.grass.height; this.addChild(this.grass); //创建一个帧循环处理函数,用于背景位置的更新,实现背景滚动效果。 Laya.timer.frameLoop(1, this, this.onLoop) } _proto.onLoop = function(){ /...
来源: Laya_社区 发布时间: 20160722
...ateNode("Sprite", { texture: { _$uuid: asset.id }, width: imageMeta.width, height: imageMeta.height }); } }); } } onDropToScene 资源被拖放到场景时被调用,如果没有定义这个方法,或者这个方法返回false,则会尝试调用onCreateNode创建节点,如果创建成功,...
来源: Laya3.0_文档 发布时间: 20251010
...tangle = new Laya.Rectangle(0, 0, Laya.stage.designWidth, Laya.stage.designHeight); //创建TiledMap地图 this.tMap.createMap("resources/TiledMap/orthogonal.json", viewRect, new Laya.Handler(this, this.completeHandler)); } //添加地图到Scene2D下 private onLoaded(): void { this.tMap.mapSprite()...
来源: Laya3.0_文档 发布时间: 20251010
...ferhandle@sprd_allocator.cpp:148] buffer handle size 10479616, width 1080, height 2408, stride 4352, fd 8, format: <private>, phy 0x0, usage 0xb, viraddr 0x0000000000000000 01-06 17:34:41.531 902 1210 I C01401/Bufferqueue: <163>Alloc: buffer handle size 10479616, width 1080, height 2408,...
来源: Laya_社区 发布时间: 20250106
...体 `BoxCollider`  (图5-1) ##### 宽高 `width、height` 矩形碰撞体BoxCollider,也可以直译为盒子碰撞体,是封闭的直角平行四边形碰撞框,为节点添加BoxCollider组件后,默认的BoxCollider宽高会等于该节点的宽高。如果节点的...
来源: Laya2.0_文档 发布时间: 20210714
...//生成随机值半径和高 let raidius = Math.random() * 0.2 + 0.2; let height = Math.random() * 0.5 + 0.8; //创建圆锥形3D模型节点对象 let cone = new Laya.Sprite3D; let coneMesh = cone.addComponent(Laya.MeshFilter); let coneRender = cone.addComponent(Laya.MeshRenderer); // 创建网格...
来源: Laya3.0_文档 发布时间: 20251010
...18:21:18.180789+0800 layabox[3608:626634] =============onGLReady width=640,height=1136 2020-04-22 18:21:18.181206+0800 layabox[3608:626634] download thread num = 3 2020-04-22 18:21:18.583837+0800 layabox[3608:626634] createOpenALSource current num=10 2020-04-22 18:21:18.585036+0800 layabox[3608:6266...
来源: Laya_社区 发布时间: 20200422