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

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

21. 分享个用美术资源做位图文本的方法。。。 [ 94%]

...位图字体; */ class BPFont extends Laya.Sprite{ // 文本内容 private _text: string; // json数据 private _jsonData: any; // 图片数据 private _imageData: Laya.Texture; // 文本字间距 private _padding: number = 0; // 所有元素; private charSprites: Laya.Sprite; // 位置类型 priv...

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

22. 飞机大战地图滚动报错,麻烦看下? [ 94%]

...6, Laya.WebGL); var bg1 = null; var bg2 = null; var box = null; function bg_rolling() {     box = new laya.display.Sprite();     Laya.stage.addChild(box);     bg1 = new laya.display.Sprite();     bg1.loadImage("res/bg1.png");     box.addChild(bg1);     bg2 = new laya.display.Sprite();  ...

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

23. 多点触控的使用(JavaScript-3D基础(JS)-LayaAir3D之鼠标交互) [ 94%]

...ript //重写脚本中的onUpdate方法 onUpdate() { var touchCount = this._scene.input.touchCount(); if (1 === touchCount){ //判断是否为两指触控,撤去一根手指后引发的touchCount===1 if (this.isTwoTouch){ return; } this._text.text = "触控点为1"; //获取当前的触控点,...

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

24. 多点触控的使用(TypeScript-3D基础(TS)-LayaAir3D之鼠标交互) [ 94%]

...ript //重写脚本中的onUpdate方法 onUpdate() { var touchCount = this._scene.input.touchCount(); if (1 === touchCount){ //判断是否为两指触控,撤去一根手指后引发的touchCount===1 if (this.isTwoTouch){ return; } this._text.text = "触控点为1"; //获取当前的触控点,...

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

25. 小程序不支持matter.js吗 [ 94%]

...tp://xxx.xxx.x.x:14680/game/game.js:4:1 at require (xxx.xxx.x.x:14680/game/__dev__/WAGame.js:1:77964) at http://xxx.xxx.x.x:14680/game/gamePage.html:168:5 2018-11-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 ...

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

26. 我想在拖动startDrag时,根据X的值助理其它的业务 [ 94%]

...知道什么写(下来的例子是想重写x属性的) 附件 : --> T22_DragPicture.rar 2017-10-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 赞同来自: 1.引擎中没有判断的...

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

27. webGL模式下 graphic画线涂鸦,一直不停画会出现线条异常 [ 93%]

...自: pos0:Laya.Point=new Laya.Point(); pos1:Laya.Point=new Laya.Point(); __mouseDown(e:Event){ this.pos0.x=this.bmp.mouseX; this.pos0.y=this.bmp.mouseY; this.pos1.x=this.bmp.mouseX this.pos1.y=this.bmp.mouseY; this.bmp.on(Laya.Event.MOUSE_MOVE, this, this.__mouseMove); this.bmp.on(Laya.Event.MOUSE_U...

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

28. 分享,扩展Laya.Text组件实现简单的富文本 [ 93%]

...d " : "") + this.fontSize + "px " + (Browser.onIPhone ? (laya.display.Text._fontFamilyMap[this.font] || this.font) : this.font); Browser.context.font = ctxFont; var padding = this.padding; var startX = padding[3]; var textAlgin = "left"; var lineHeight = this.leading + this._charSize.height; var tCu...

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

29. laya.d3.terrain.TerrainLeaf [ 93%]

...errainLeaf Terrain的叶子节点 Public Properties PropertyDefined By  __ADAPT_MATRIX__ : Matrix4x4[static] TerrainLeaf  __ADAPT_MATRIX_INV__ : Matrix4x4[static] TerrainLeaf  _boundingBox : BoundBoxTerrainLeaf  _boundingSphere : BoundSphereTerrainLeaf  CHUNK_GRID_NUM : int = 64[static] T...

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

30. [LayaNative3]x86_64使用shader蓝图(版本3.0.8) [ 93%]

[LayaNative3]x86_64使用shader蓝图(版本3.0.8) 模拟器x86_64这个shader会报错JCGpuProgram::checkCompile Could not compile shader PS:0(66) : error C1317: qualified actual parameter #1 cannot be converted to less qualified parameter ("surface.5") ,但是在模拟器32、网页、微...

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