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

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

871. Laya.Loader.getRes("xxx.png")取出来的资源为什么是Texture2D,不是Texture [ 50%]

...      tex.once(Event.READY, thisthis.drawImage, [tex, x, y, width, height]);                 }   导致 tex 找不到 getIsReady 方法报错     报错堆栈 TypeError: tex.getIsReady is not a function at Graphics.loadImage (file:///D:/zxl/2.0_stable/lfGame2.0/bin/...

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

872. layaAir如何实现for循环加载多张图片,并且通过事件按比例缩小 [ 50%]

...te = new Sprite;             ape.x=(apesCtn._childs.length)*(stageWidth/4)             var bl:Number=texture.width/texture.height             ape.graphics.drawTexture(texture,0,0,stageWidth/4,stageWidth/4/bl);             apesCtn.addChild(ape);         } 201...

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

873. 预制体 · LayaAir3.4 · 引擎文档 · LAYABOX [ 49%]

...增加了LabelScript脚本(有“+”号标识) 对item节点修改了width属性(属性设置面板有黄色线提示) 添加了Button组件(有“+”号标识) 这些修改也可以覆盖到预制体中,我们来看看如何操作。如图3-4所示 (图3-4) 点击item节点,...

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

874. laya.ui.FontClip_API3.0 [ 49%]

...hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy align alpha anchorX anchorY autoPlay blendMode bottom cacheAs centerX centerY clipHeight clipWidth clipX clipY components customRenderEnable dataSource destroyed direction disabled displayHei...

来源: Laya3.0_api 发布时间: 20231115

875. 物理引擎显示旋转问题 [ 49%]

....alignH = Stage.ALIGN_CENTER;         Laya.stage.scaleMode = "fixedwidth";         Laya.stage.bgColor = '#000';         setup();     })();     function setup() {         initMatter();         initWorld();         Laya.stage.on("resize", this, o...

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

876. Laya3D初始化 window.wxMiniGame is not a function [ 49%]

...this.zombieAnimator.on is not a function if (window["Laya3D"]) Laya3D.init(width,heigh) 调用失败,引起底层问题 浏览器运行提示TypeError: xxx is not a function 希望Laya3D的入门提供一个unity的项目例子 LayaAirIDE2.2 - Laya3D init error ,must support webGL laya3d在vivo小...

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

877. laya.display.Text_API3.0 [ 49%]

...对象的属性 y 的值,用于控制 text 对象的显示位置。 text.width = 300;//设置 text 的宽度。 text.height = 200;//设置 text 的高度。 text.italic = true;//设置 text 的文本显示为斜体。 text.borderColor = "#fff000";//设置 text 的文本边框颜色。 Laya.stage.a...

来源: Laya3.0_api 发布时间: 20231115

878. 2D寻路 · LayaAir3.4 · 引擎文档 · LAYABOX [ 49%]

...终点所在的位置和方向,链接将在这个终点位置结束。 Width:链接的宽度,决定了链接的可通过区域的大小。 Bidirectional:是否为双向链接。如果不勾选,则链接只能单向通行,代理只能从起点到终点,不可以从终点到起点。 如...

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

879. 头条/微信/OPPO/vivo/趣头条/百度 等渠道发布 [ 48%]

..... 上一行代码: graphics.drawTexture(shareTexture, 0, 0, shareTexture.width, shareTexture.height); 下一行报错: Uncaught TypeError: this.bitmap.activeResource is not a function 2020-05-28 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发...

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

880. laya.display.Animation_API3.0 [ 48%]

...AP_POSITIVE WRAP_REVERSE drawtocanvCtx framesMap Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY autoPlay blendMode cacheAs components count customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters frames globalRotation globa...

来源: Laya3.0_api 发布时间: 20231115