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

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

941. 3D模式下使用Tween使模型移动如何写法 [ 52%]

...型移动如何写法 //载入并显示鱼模型 var fish = new Laya.MeshSprite3D(Laya.Mesh.load("fish/denglongyu/denglongyuANI-denglongyu.lm")); scene.addChild(fish); var fishmaterial = new Laya.StandardMaterial(); //漫反射贴图 fishmaterial.diffuseTexture = Laya.Texture2D.load("fish/denglongyu...

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

942. LayaAir3D 导出和使用U3D粒子特效 [ 52%]

...3-27 0 1 分享 微博 QZONE 微信 颜颜粑粑 赞同来自: var particleSprite3D:Sprite3D = scene.addChild(Sprite3D.load("...")) as Sprite3D; particleSprite3D.transform.position = new Laya.Vector3(100,0,0);   这样写 无法移动例子效果? 2018-05-09 0 6 分享 微博 QZONE 微信 绝地...

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

943. 3d资源释放的问题 [ 52%]

...们就可以通过getRes(.lh)得到这个资源的原型对象,即一个Sprite3D对象,这个原型对象就是你这个特效的“根”,它如果被destry(true),者与这个特效相关的所有资源都会被destry,包括纹理、模型、动画,即会释放出内存。如果你只...

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

944. 2D线渲染器 · LayaAir3.4 · 引擎文档 · LAYABOX [ 52%]

...内。 */ export class DrawLine extends Laya.Script { declare owner: Laya.Sprite; line2DRender: Laya.Line2DRender; lastMousePos: number[] = []; isDrawing: boolean = false; // 标记是否正在绘制 // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一...

来源: Laya3.0_文档 发布时间: 20251010

945. layaFlash 无法使用 Loader 加载外部SWF和图片 [ 52%]

...flash.display.Loader; import flash.display.MovieClip; import flash.display.Sprite; import flash.events.Event; import flash.net.URLRequest; import flash.system.ApplicationDomain; import flash.system.LoaderContext; public class SwfBinary extends Sprite { public function SwfBinary() { super(); if(stage...

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

946. laya animation播放图片集合,切换时会闪烁一下 [ 51%]

...下,使用graphics就没个问题,放弃animation,直接使用更换 sprite的graphics,自己封装了类,爱加什么功能自己写。 kura • 2019-03-25 12:17 明显可以看到每切换一下动画,都会闪烁一便 kura • 2019-03-25 12:16 https://andyskaura.github.io/ 简单demo...

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

947. laya寻路导航中的HeightMap和AStarMap是什么图片,有什么要求,获取可行走区域模型这个也有要求吗 [ 51%]

...在laya中显示不正常 Texture图片能否进行翻转? 如何设置Sprite的宽高和点击区域? Laya2.6.0beta 物理引擎 刚体碰撞点位置获取不正确 iphoneX环境下新手引导的抠图透明区域为黑色,其它机型都是正常的。 问题状态 最新活动: 2018-08-02...

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

948. 请问为什么我在ps内设置gl_FragColor的Alpha值,并没有效果呢 [ 51%]

...态”? 请问在layaIDE里,怎么调用微信小程序API 如何设置Sprite的宽高和点击区域? 使用钢体设置防穿后仍有几率会穿透 从unity导出的场景透贴和模型烘焙的灯光不显示,请问有知道是什么原因的吗?~~~~~~~~~~~~~ 请问下加载TFF字体...

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

949. 【laya2.0】加载并且显示图片,并且让该图片居于舞台中央,怎么写? [ 51%]

...容相关的链接 提交 2 个回复 hj 赞同来自: var logo = new Laya.Sprite(); Laya.stage.addChild(logo); logo.loadImage("res/atlas/test.png", Laya.Handler.create(this, function(){ console.log("complete!!"); logo.x= Laya.stage.width/2-logo.width/2; logo.y= Laya.stage.height/2-logo.height/2; //...

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

950. TypeError: Cannot read property 'GetType' of null [ 51%]

...t a function 升级到2.2.0Beta报错Uncaught TypeError: Class constructor Sprite cannot be invoked without 'new' 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function Cannot read property 'events' of undefined 引擎SWF动画示例,提示 TypeError: Mov...

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