大约有 1,613 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0052 秒)
Laya_社区(1206) Laya2.0_文档(194) Laya_示例(55) Laya3.0_api(49) Laya2.0_示例(43) Laya3.0_文档(41) Laya2.0_api(13) laya_api(12)
...复 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
...window下Animation打开动画编辑界面,快捷键Ctrl+6。 2、点击create按钮创建动画并取名,本例中取名使用的默认名字New Animation,保存后在资源管理器中会生成动画文件New Animation。 3、选择时间轴上时间,修改材质的漫反射颜色,重复...
来源: Laya2.0_文档 发布时间: 20210715
...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
... 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
... 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
...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
... 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
...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
...window下Animation打开动画编辑界面,快捷键Ctrl+6。 2、点击create按钮创建动画并取名,本例中取名使用的默认名字New Animation,保存后在资源管理器中会生成动画文件New Animation。 3、选择时间轴上时间,修改材质的漫反射颜色,重复...
来源: Laya2.0_文档 发布时间: 20210714
...面的配置文件: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