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

大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0076 秒)

1551. 区块地图-PerspectiveWall [ 68%]

...; Laya.stage.bgColor = "#232628"; this.createMap(); } private createMap(): void { this.tiledMap = new TiledMap(); this.tiledMap.createMap("res/tiledMap/perspective_walls.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), null); } } } new laya.TiledMap_PerspectiveWall();package { import...

来源: Laya2.0_示例 发布时间: 20260303

1552. 材质-BlinnPhong-反射贴图 [ 68%]

...; teapot2.meshFilter.sharedMesh.once(Laya.Event.LOADED, null, function (): void { var material: Laya.BlinnPhongMaterial = teapot2.meshRender.material as Laya.BlinnPhongMaterial; //反射贴图 material.reflectTexture = textureCube; }); Laya.timer.frameLoop(1, this, function (): void { teapot1.transf...

来源: Laya_示例 发布时间: 20260303

1553. 用LayaAir引擎解析Tiled Map地图(ActionScript-2D进阶篇(AS3)-扩展模块) [ 68%]

...wRect, Handler.create(this,onMapLoaded)); } private function onMapLoaded():void { //将原地图放大2倍 tMap.scale = 2; } } } ``` 运行效果如图8所示。 ![图8](img/8.png) (图8) #### 2.2.2 设置地图缩放的中心点 很明显,图8中的效果并不是我们想要的。放大后。有...

来源: Laya2.0_文档 发布时间: 20210714

1554. laya.d3.utils.Picker [ 68%]

...rojectionMatrix:Matrix4x4, viewMatrix:Matrix4x4, world:Matrix4x4, out:Ray):void[static] 计算鼠标生成的射线。 Picker  rayIntersectsPositionsAndIndices(ray:Ray, vertexDatas:Float32Array, vertexDeclaration:VertexDeclaration, indices:Uint16Array, outHitInfo:RaycastHit):Boolean[static] 计算...

来源: laya_api 发布时间: 20170929

1555. laya.d3.core.TransformUV [ 68%]

... TransformUV  clone():* 克隆。 TransformUV  cloneTo(destObject:*):void 克隆。 TransformUV event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher hasListener(type:String):Boolean 检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 EventDi...

来源: laya_api 发布时间: 20170929

1556. laya.display.cmd.FillTextureCmd_API3.0 [ 68%]

...Optional height?: number width: number Returns number[] recover recover(): void Defined in laya/display/cmd/FillTextureCmd.ts:69 回收到对象池 Returns void Globals "laya/display/cmd/FillTextureCmd" FillTextureCmd color height offset percent texture type width x y ID getBoundPoints recover Legen...

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

1557. laya.filters.BlurFilter_API3.0 [ 68%]

...is: RenderSprite, sprite: Sprite, context: Context, x: number, y: number): void Inherited from BlurFilter._filter Defined in laya/filters/Filter.ts:38 Parameters this: RenderSprite sprite: Sprite context: Context x: number y: number Returns void Globals "laya/filters/BlurFilter" BlurFilter construct...

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

1558. laya.utils.Base64Tool_API3.0 [ 68%]

...fer Parameters arraybuffer: ArrayBuffer Returns string Static init init(): void Defined in laya/utils/Base64Tool.ts:10 Returns void Static isBase64String isBase64String(str: string): boolean Defined in laya/utils/Base64Tool.ts:23 判断字符串是否是 base64 Parameters str: string Returns boolean...

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

1559. 想做天空盒但是camera上没有sky这个属性 [ 68%]

...ox/skyBox1/skyBox.lmat", Handler.create(null, function(mat:SkyBoxMaterial):void { camera.skyboxMaterial = mat; Laya.timer.frameLoop(1, this, function():void { mat.rotation += 0.1; }); })); } 2018-10-22 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登...

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

1560. 3D模型怎么删除?没回切换页面原来的模型都还在? [ 68%]

...j/cj.lh"); this.scene.addChild(map);   4.切换页面 private playGame(): void { Laya.stage.removeChild(this.welcomePanel); this.gamePanel = new GamePanel();//不管是不是重新new的,模型一直在 Laya.stage.addChild(this.gamePanel); } private playWelcome(): void { Laya.stage.removeChild(this...

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