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

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

121. CameraMoveScript [ 72%]

CameraMoveScript CameraMoveScript.super(this);请问这个组建中的super方法有什么用? 2017-09-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 赞同来自: 调用父类的构造...

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

122. runTime使用(JavaScript-IDE篇(JS)-组件化开发相关) [ 72%]

...cript export default class ImageRunTime extends Laya.Image{ constructor(){ super(); this.scaleTime = 100; //设置组件的中心点 this.anchorX = this.anchorY = 0.5; //添加鼠标按下事件侦听。按时时缩小按钮。 this.on(Laya.Event.MOUSE_DOWN,this,this.scaleSmall); //添加鼠标抬...

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

123. HttpRequest详解(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 71%]

...ript class HttpRequestExtension extends Laya.HttpRequest { constructor() { super(); } public send(url:string,data:any=null,method:string="get", responseType:string="text", headers:any=null):void{ super.send(url,data,method,responseType,headers); this._http.upload.onprogress= function(e:any):void { /...

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

124. 分享一个Shader版的CoolDown实现 [ 71%]

...        }\             ";             */             super(vs, ps, "coolDownShader");         }     } import WebGLContext = laya.webgl.WebGLContext;     import Value2D = laya.webgl.shader.d2.value.Value2D;     import CONST3D2D = laya.webgl.utils.CONST3D2D;     expor...

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

125. 显示文本组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 71%]

...@property( { type : Laya.Label } ) public lab: Laya.Label; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.lab.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this....

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

126. 想用js写一个什么也不继承的类,但每次实例化这个类的时候会报错,是不是这个类写得不对呀 [ 71%]

...的时候会报错,是不是这个类写得不对呀 var Test = (function(_super){ function Test(){         Test.super(this);         console.log("执行测试构造函数"); } //注册类 Laya.class(Test,"Test",_super); //获取执行域 var _proto = Test.prototype; //_proto. return Test; }...

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

127. 怎样复制bmf字体 [ 71%]

...字体。    class cloneLabel extends Laya.Label { constructor(_label) { super(); this.align = _label.align; this.x = _label.x; this.y = _label.y; this.width = _label.width; this.height = _label.height; this.fontSize = _label.fontSize; this.color = _label.color; this.font = _label.font; } } 2018-0...

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

128. ts项目 模块问题 [ 70%]

.../b文件 export default class player extends Laya.Sprite { constructor() { super(); this.pivot(this.width / 2, this.height / 2); this.graphics.drawRect(0, 0, this._size, this._size, this._color); } }   //a文件 import player from './player'; // 程序入口 class GameMain { constructor() { Laya.in...

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

129. 绘制图形的BUG [ 70%]

...yBox extends Sprite { private var _shape:Sprite; public function MyBox() { super(); graphics.drawRect(0,0,200,200,"#00ff00"); _shape=new Sprite(); _shape.graphics.drawCircle(0,0,20,"#ff0000"); addChild(_shape); //加上这句正常,反之则异常 //_shape.cacheAsBitmap=true; pos(300,300); Tween.t...

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

130. HtmlDivElement宽度设置错误 [ 70%]

...代码export default class HtmlTest extends Laya.Sprite { constructor() { super(); this.init(); } init() { this.bg = new Laya.Sprite(); this.bg.graphics.drawRect(0, 0, 200, 200, '#ccc'); this.addChild(this.bg); this.htmlTxt = new Laya.HTMLDivElement(); this.htmlTxt.style.fontSize = 20; this.htmlTxt....

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