大约有 3,272 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0138 秒)
...unction(){ /** * 地板类 */ function Floor(){ //背景贴图纹理 this.bgTexture = null; //背景 this.bg = null; Floor.__super.call(this); } //Floor 是一个显示对象 继承此 Sprite Laya.class(Floor, "Floor", laya.display.Sprite); var _proto = Floor.prototype; _proto.init = function(){ //...
来源: Laya_社区 发布时间: 20160728
...xedRate getPublicExtData getSkinIndexByName getTexture getTotalkeyframesLength hasListener isCreateFromURL off offAll offAllCaller on once setAnimationDataWithCache destroyUnusedResources Constructors constructor new Templet(): Templet Inherited from AnimationTemplet.constructor Overrides Resource._...
来源: Laya3.0_api 发布时间: 20231115
...loader.load(["resource/AtlasConfig.atlas"], Laya.Handler.create(this, () => { let img = new Laya.Image; Laya.stage.addChild(img); img.pos(500, 100); img.skin = "resources/img_bg.png"; //图集中的图片 })); } onStart() { Laya.Stat.show(0, 0); } } 通过示例代码,我们可以看到,图...
来源: Laya3.0_文档 发布时间: 20251010
...A/art: art/runtime/java_vm_ext.cc:470] TypeError: Cannot read property 'length' of undefined 2019-03-15 08:45:13.438 8214-8265/com.layabox.hello A/art: art/runtime/java_vm_ext.cc:470] t.src:function(){for(var e,t=document.scripts,i=t.length-1,n=i;n>0;n--)if("interactive"===t[n].readyState){e=t[n]...
来源: Laya_社区 发布时间: 20190315
...)。 Sprite parallelSplitShadowMaps : Vector.<ParallelSplitShadowMap>BaseScene parent : Node[override] Sprite pivotX : NumberX轴 轴心点的位置,单位为像素,默认为0。轴心点会影响对象位置,缩放中心,旋转中心。Sprite pivotY : NumberY轴 轴心点的位置...
来源: laya_api 发布时间: 20170422
...fferDatas (laya.d3.js:26634) at ShurikenParticleSystem.<anonymous> (laya.d3.js:27190) at ShuriKenParticle3D.__proto._parseCustomProps (laya.d3.js:40855) at Function.Utils3D._createNodeByJson (laya.d3.js:17945) at Function.Utils3D._createNodeByJson (laya.d3.js:17954) ...
来源: Laya_社区 发布时间: 20180731
... Sprite3D getComponentsByType(type:*, components:Vector.<Component3D>):void 通过指定类型获得所有组件。 Sprite3D getProjectionViewWorldMatrix(projectionViewMatrix:Matrix4x4):Matrix4x4 获取投影视图世界矩阵。 Sprite3D hasListener(type:String):Boolean 检查 EventDispatc...
来源: laya_api 发布时间: 20170929
...ya.loader.fetch(imageUrl, "arraybuffer").then((arrayBuffer: ArrayBuffer) => { // 直接发送加载后的 ArrayBuffer 数据 this.socket.send(arrayBuffer); console.log("发送 ArrayBuffer 数据", arrayBuffer); }); } private onMessageReceived(message: any): void { if (message instanceof ArrayBuff...
来源: Laya3.0_文档 发布时间: 20251010
...ew Laya.Vector3(0, 0.01, 0); onStart() { Laya.timer.frameLoop(1, this, ()=> { this.cube.transform.rotate(this.rotation, false); }); } } 效果如动图4-4所示: (动图4-4) 4.1.3 3D节点的进阶使用 @property( { type :Laya.Sprite3D } ) //节点类型 public p3d: Laya.Sprite3D; onAwake(...
来源: Laya3.0_文档 发布时间: 20251010
...uuvR57WnPoqe2loctGG8mmzOozrSUvtAy3Da1WsRUlKhsg2Dkb1cHO3vVx2kvsLI6r0hqRUlmxGgTBMYBITJD6r/PnR6e+iObP9VTrPP28XVLbN0Jf1fdVVzdXPON081OXRYLT5/U5XOzO7ozHtlo7rOC52IamuzO4r80y30GoMb46LO2RUlKmpkoSIe4xGrl9O/wB+ez06KCxKrJ6TOakIyWb6sKcoyOqy5PoK43su7Q+W+epy28nZyafN4LK79c3N5jQ5/fOA/aa8DdURQl7S0WdbcS6fsyUpejM7bJ6zX...
来源: Laya_社区 发布时间: 20190725