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

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

2341. image在相应loaded的时候,无法正确获取高度 [ 49%]

image在相应loaded的时候,无法正确获取高度 class RoleUIDynamic extends Laya.Image { matterBody: Matter.Body; constructor() { super(); this.on('start', this, this.init); } private init():void { console.log("init", this.x, this.y, this.width, this.height, this.scaleX, this.scaleY); var ...

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

2342. laya.d3.core.Transform3D [ 49%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames Transform3DProperties | Methods Packagelaya.d3.coreClasspublic class Transform3DInheritanceTransform3D EventDispatcher Object Transform3D 类用于实现3D变换。 Public Properties PropertyDefined By  localMatrix : ...

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

2343. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 49%]

...G_ENDIAN;设置为高位即可。 4.借用下any ts里面类的你会发现classB明明继承了classA或者实现了接口IA,但是你在使用classB做处理使会出现报错,这个时候借用下any吧,如: classA implements IA{ } classB extends classA{ } var items:IA = ; function(item:c...

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

2344. 图集打包后使用Texture不显示啊 [ 49%]

...Laya.Loader; import Texture = Laya.Texture; import Handler = Laya.Handler; class GameMain{ constructor() { Laya.init(1080,1321); //设置适配模式 Laya.stage.scaleMode = "showall"; //设置剧中对齐 Laya.stage.alignH = "center"; //设置横竖屏 //Laya.stage.screenMode = "vertical"; var textu...

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

2345. HTMLIframeElement 使用出错?请大神指点 [ 49%]

...4 21:27 import HTMLIframeElement = Laya.HTMLIframeElement; // 程序入口 class GameMain{ constructor() { Laya.init(600,400); //Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_CENTER; Laya.stage.screenMode = Laya.Stage....

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

2346. LayaAir IDE 语言包的使用? [ 49%]

...aya.net.Loader; import laya.utils.Handler; import laya.webgl.WebGL; public class Main { public function Main() { Laya.init(640, 960, WebGL); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.bgColor = "#eeffcc"; Laya.loader.load("lang.lang",Handler.create(this,onLoaded),null,Loader.JSON); } privat...

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

2347. laya.d3.component.volume.batchvolume.StatiVertexMergeBatchRender_API3.0 [ 49%]

...olume/BatchVolume/StatiVertexMergeBatchRender" StatiVertexMergeBatchRender Class StatiVertexMergeBatchRender Hierarchy BatchRender StatiVertexMergeBatchRender Implements IBoundsCell Index Constructors constructor Properties _extra _receiveShadow _singleton owner runInEditor scriptPath sortingFudge A...

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

2348. 物理Bodies绑定Laya.Sprite [ 49%]

...动吗 冰水blue • 2018-06-04 21:15 @(^_^):http://brm.io/matter-js/docs/classes/Body.html 自己看看吧。 冰水blue • 2018-05-23 14:49 已经添加到world了啊。

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

2349. JSONP跨域读取数据(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 49%]

...建一个空项目,语言选择as3,具体代码如下所示: ```java class LayaSample { constructor() { Laya.init(100,100); var script:any = Laya.Browser.createElement("script"); Laya.Browser.document.body.appendChild(script); script.src = "http://localhost:9090/?a=1"; } public static onComple...

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

2350. 在开启webgl模式下,每次运行texture类的getPixels方法内存都会增加 [ 49%]

....Sprite import Texture = Laya.Texture import Handler = Laya.Handler export class MaskDemo { private Res: string; private img: Laya.Image; constructor() { //Laya.init(400, 640, Laya.WebGL); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" Laya.Stat.show() //资源路径 this.Res = "test.png"; t...

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