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

大约有 1,613 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0052 秒)

441. 如何实现类似AS3下的BitmapData.draw去截取区域图片? [ 69%]

...复 cuixueying 赞同来自: 1、譬如我有一张图片 2、通过TextureCreate创建package {     import laya.display.Sprite;     import laya.resource.Texture;     import laya.utils.Handler;     public class CupPhone     {         public function CupPhone()         {  ...

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

442. 材质动画的使用(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 69%]

...window下Animation打开动画编辑界面,快捷键Ctrl+6。 2、点击create按钮创建动画并取名,本例中取名使用的默认名字New Animation,保存后在资源管理器中会生成动画文件New Animation。 3、选择时间轴上时间,修改材质的漫反射颜色,重复...

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

443. 不带格式后缀的图片无法成功加载 [ 69%]

...n.api/e285dd263aee2e8f7b302fa8d139de4c' Laya.loader.load(url, Laya.Handler.create(this, () => { let picTemp = Laya.Loader.getRes(url); console.log(picTemp.width) // undefined let nodee = new Laya.Sprite() nodee.texture = picTemp nodee.width = 500 nodee.height = 250 nodee.x = 100 nodee.y = 350 Lay...

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

444. laya.maths.Matrix_API3.0 [ 69%]

... setTo setTranslate skew toString transformPoint transformPointN translate create mul mul16 Constructors constructor new Matrix(a?: number, b?: number, c?: number, d?: number, tx?: number, ty?: number, nums?: number): Matrix Defined in laya/maths/Matrix.ts:30 使用指定参数创建新的 Matrix ...

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

445. UNITY导出的模型旋转不了 [ 69%]

... Laya.Stat.show(); Laya.Scene3D.load('/1/res/SampleScene.ls', Laya.Handler.create(null, function(scene1){ let scene = Laya.stage.addChild(scene1); Laya.Sprite3D.load("/1/res/SampleScene.lh", Laya.Handler.create(null, function(sp) { //let obj = sp; let obj = scene.addChild(sp); obj.transform.scale = ...

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

446. 区块地图-等角地图 [ 69%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createMap(); Laya.stage.on(Laya.Event.CLICK, this, this.onStageClick); } createMap() { const TiledMap = Laya.TiledMap, Rectangle = Laya.Rectangle, Point = Laya.Point; this.tiledMap = new TiledMap(); this.tiledMap.createMap("r...

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

447. 发射射线检测不到,物体有包围盒 [ 69%]

... Laya.Scene3D.load("res/LayaScene_game/Conventional/game.ls",Laya.Handler.create(null,function(scene3d){             // HelperApp.a = scene3d;             //加载完成获取到了Scene3d             scene3d.name = 'good';             self.owner.addChild(scene3d);       ...

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

448. 设置cacheAs = bitmap时, drawCanvas 的一个bug [ 69%]

...src._targets上 /* this._submits[this._submits._length++] = SubmitCanvas.create(src, 0, null); _curSubmit = SubmitBase.RENDERBASE; //画出src._targets //drawTexture(src._targets.target.getTexture(), x, y, width, height, 0, 0); */ //应用并清空canvas中的指令。如果内容需要重画,Rend...

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

449. 材质动画的使用(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 69%]

...window下Animation打开动画编辑界面,快捷键Ctrl+6。 2、点击create按钮创建动画并取名,本例中取名使用的默认名字New Animation,保存后在资源管理器中会生成动画文件New Animation。 3、选择时间轴上时间,修改材质的漫反射颜色,重复...

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

450. 请问怎么监听在IDE中创建的UI中资源的加载进度呢 [ 69%]

...面的配置文件:Laya.loader.load(['res/atlas/game.json'],Laya.Handler.create(this,Slot.onSourcesLoaded), Laya.Handler.create(this,Slot.onSourcesLoading,null,false),Laya.Loader.ATLAS);这样写似乎监听的当前加载进度不太对,我总共有6张未打包图和1张打包图 打印的结...

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