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

大约有 6,677 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0124 秒)

961. 抛click点击事件报错 [ 84%]

...ck点击事件报错 是不是只能抛自定义事件  比如let xx:Laya.Sprite = new Laya.Sprite(); xx.event(Laya.Event.Click);  然后会报错    因为要实现新手引导5秒自动点击功能 所以会抛出一个事件  这个貌似是基本功能 求解答 2018-05-25 添加评论 免...

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

962. [3.0.6]碰撞体不能以中心调节 [ 84%]

...节   目前想让碰撞体居中,需要用fitresize得到的值(估计是sprite的宽或高的最大值),减去碰撞体半径,再填入对应的偏移中才能让碰撞体居中. 再次调节半径值,需要再次修改偏移值,才能使碰撞居中.   请注意,默认行为不应该如此! 应...

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

963. 关于环形进度条,进度不能重置问题 [ 84%]

...per(this); this.angle = 0; Laya.timer.loop(200,this,this.loadProgress) var Sprite = Laya.Sprite; this.box = new Sprite(); this.box.cacheAs = "bitmap"; this.box.pos(0,0); this.say.addChild(this.box); this.draw = new Sprite(); this.box.addChild(this.draw); this.draw.graphics.drawPie(this.say.width/2, ...

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

964. list 下 生成图片模糊 [ 84%]

...hildren(); var root = cell.getChildByName('root'); if (!root) { root = new Sprite(); root.pos(0, 0); root.name = "root"; cell.addChild(root); } 。。。。。 生成的 图片 从一个场景中回来在生成 他的 子物体 Sprite 在切换场景再回来 在生成 如此多次 自后 我的 lis...

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

965. 子容器的事件问题 [ 84%]

...); }); } /**  * ViewHeadViewTest  */ class ViewHeadViewTest extends Laya.Sprite {     constructor() {         super();         this.graphics.drawRect(0, 0, 1500, 1500, "#0000ff");         this.on(Laya.Event.CLICK, this, this.onclickTest);     }     onclickTest(): void {       ...

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

966. laya.d3.core.BaseCamera [ 84%]

...ants Packagelaya.d3.coreClasspublic class BaseCameraInheritanceBaseCamera Sprite3D Node EventDispatcher ObjectSubclasses Camera BaseCamera 类用于创建摄像机的父类。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean ...

来源: Laya2.0_api 发布时间: 20190513

967. graphics绘制报错 [ 84%]

graphics绘制报错 class Sprite_DisplayImage { constructor() { Laya.init(Laya.Browser.clientWidth, Laya.Browser.clientHeight, Laya.WebGL); const path = "./res/apes/monkey2.png"; Laya.loader.load(path, Laya.Handler.create(this, function() { let tex = Laya.loader.getRes(path); let sp = new Laya.Spr...

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

968. 调用图集中小图片失败 [ 84%]

调用图集中小图片失败 var sp:Sprite=new Sprite(); sp.loadImage("img/btnbg2.png"); Laya.stage.addChild(sp); var sp1:Sprite=new Sprite(); sp1.loadImage("system/twoP.png"); Laya.stage.addChild(sp1); img图集中的小图可以调用到,system的图集调用不到,在浏览器的资源列表...

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

969. 性能测试-卡通人物2 [ 84%]

...= 0) { text.text = Stat.FPS.toString(); } } } class Character extends Laya.Sprite { constructor(images) { super(); this.speed = 5; this.bloodBar; this.animation; this.nameLabel; this.createAnimation(images); this.createBloodBar(); this.createNameLabel(); } createAnimation(images) { const Animation =...

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

970. 自定义shader-边缘光照shader [ 84%]

...ght.direction = new Laya.Vector3(1, -1, 0); var dude = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/dude/dude.lh")); dude.once(Laya.Event.HIERARCHY_LOADED, this, function () { var customMaterial1 = new CustomMaterial(); customMaterial1.setDiffuseTexture(Laya.Texture2D.load("../....

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