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

大约有 2,371 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0060 秒)

2041. 字距的调整问题 [ 50%]

...有些机型出现字距太小,整行字挤压在一起,估计是context 在这些机型获取不了之类的问题。 我现在问题是,如何在laya内设置字距。 2019-02-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

2042. 【紧急】laya2.0的loadImage方法为什么不触发complete? [ 50%]

... <p>加载并显示一个图片。相当于加载图片后,设置texture属性</p>          * <p>注意:2.0改动:多次调用,只会显示一个图片(1.0会显示多个图片),x,y,width,height参数取消。</p>          * @param url      ...

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

2043. this.scene.physicsSimulation.rayCastAll 报错 [ 50%]

this.scene.physicsSimulation.rayCastAll 报错 this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.mouseY; //产生射线 this.camera.viewportPointToRay(this.point,this.ray);   /// Laya.PhysicsSimulation.rayCast(this.ray, this.outHitResult, 30, 0) //拿到...

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

2044. uniformMap表格(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 50%]

...) | 变量名 | 描述 | | :-------------------- | --------- | | u_MvpMatrix | MVP矩阵 | | u_WorldMat | 世界矩阵 | | u_LightMap | 光照贴图 | | u_LightmapScaleOffset | 光照贴图缩放和偏移 | ### 逐相机(PERIOD_CAMERA) | 变量名 | 描述 | | ------------------ | --------- | | u_Ca...

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

2045. 运行第一个hello,一直黑屏,没有东西显示出来 如何解决? [ 50%]

...o.js//创建舞台,默认背景色是黑色的 Laya.init(600, 300); var txt = new Laya.Text(); //设置文本内容 txt.text = "Hello"; //设置文本颜色 txt.color = "#FF0000"; //设置文本字体大小,单位是像素 txt.fontSize = 66; //设置字体描边 txt.stroke = 5;//描边为5像素...

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

2046. 同步龙骨插槽动画方案 [ 50%]

同步龙骨插槽动画方案 Laya Ver2.1.1   export class MSketon {      private mFactory: Laya.Templet;     public mArmature: Laya.Skeleton     private _handler: Laya.Handler;      constructor(url: string, handler: Laya.Handler, aniMode: number = 0) {     ...

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

2047. 在 tiledmap 插入一个精灵在上面 [ 50%]

...Rect(0,0,100,100,"#FF0000");   var mapLayer = this.tiledMap.getLayerByIndex(1);   console.info(mapLayer.layerName);   this.sp.pos(0,0);   mapLayer._childs[0].addChild(this.sp); }   }   new GameInfo();   遇到的问题1 把精灵插入地图时 如果代码这样写就会报错  mapLayer.add...

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

2048. 感觉实例之间是关联的,求指教。(已解决) [ 50%]

...(function (_super) { function Panel1() { Panel1.super(this); //this.poke_a.x=0; } Laya.class(Panel1, "Panel1", _super); var _proto = Panel1.prototype; //======================================= //将指定的牌显示到桌面上 //======================================= _proto.start = function () { ...

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

2049. Laya List给子元素添加事件后,滚动事件被劫持了 [ 50%]

Laya List给子元素添加事件后,滚动事件被劫持了 let storeTxList = new Laya.List(); storeTxList.itemRender = StoreItem;   storeTxList.name = 'storeTxList'; storeTxList.width = 610; storeTxList.pos(0, 0); storeTxList.repeatX = repeatX; storeTxList.repeatY = repeatY; //y轴个数 // ...

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

2050. 浏览器(QQ、支付宝)运行的时候偶尔发生 Laya3D init error must support webGl !这是怎么回事,是偶尔启动的时候出现。 [ 50%]

...相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_XS 赞同来自: 这是目前游戏运行的环境不支持webgl模式,一般出现在游戏被app嵌入的时候容易出现,手安卓系统的影响,系统在4.x的不支持webgl 2018-04-10 0 0 分享 微博 QZONE 微...

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