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

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

261. 为什么这个ui中给这个TextInput组件runtime属性绑定了一个类 [ 52%]

...xtInputEx extends Laya.TextInput constructor() { console.log("执行了"); super() ; } // 获取焦点 onFocus() : void { console.log("焦点进入"); // 是否缓存初始的文本提示字符串和文本颜色. if (!this.initText) { this.initText = this.textField.text ; this.initColor = this.textF...

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

262. 真机下运行帧率不稳定 [ 52%]

...模式和slow模式都有这个问题  class Scene_Test { constructor() { super(); Laya.timer.frameLoop(1,this,this.update); } private update() { let dt = Laya.timer.delta / 1000; console.log("dt="+dt); } } 附件中图1是在iphone6上面运行打印的信息,图2是在模拟下运行打印的...

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

263. 天理何在,一个轴心点位中心的addChild到一个父容器,父容器的轴线点也是中心 [ 52%]

...个父容器,父容器的轴线点也是中心 constructor(skin:Box) { super(); this.mc = skin; this._name = this.mc.name; this.addChild(this.mc); var xx:number = this.mc.x; var yy:number = this.mc.y; this.x = xx; this.y = yy; //一个轴心点中心的addChild到另一个轴线点位中心的 thi...

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

264. 在Test中有个按钮点击,那么我如何发信号,使得这个点击能给控制Sample中的对象,如何调用函数 [ 52%]

...atcher; public class Mod extends EventDispatcher { public function Mod() { super(); } private static var _instance:Mod; public static function get index():Mod { return _instance ||= new Mod(); } public function init():void { Mod.event("aaaa"); } } }监听:Mod.on("aaa",this,onFunciton) 2016-12-19 0...

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

265. 自定义对话框设置zOrder后,关闭时报错 [ 52%]

... var CountdownBar = (function () { function countdownBar() { PauseDialog.super(this); this.name = 'CountdownBar'; Laya.stage.addChild(this); this.zOrder = 100; this.count = 4; this.countLabel.text = '' + this.count; Laya.timer.loop(1000, this, this.countdown); } Laya.class(countdownBar, "CountdownBa...

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

266. ProgressBar 代码问题 [ 52%]

...class Onloading extends ui.LoadingUI{        constructor(){        super();        this.loadingBar.changeHandler = new Handler(this, this.onChange); } public changeValue():void{        console.log("change");        if (this.loadingBar.value >= 1){                 this....

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

267. 关于removeChildren、 destroy和destroyChildren的疑惑 [ 52%]

...   var SightBead = (function () { function sightBeadSprite() { SightBead.super(this); this.name = 'sightBead'; this.graphics.drawCircle(0,0,40,null,'#ff0000',1); this.graphics.drawLine(-45,0,45,0,'#ff0000',1); this.graphics.drawLine(0,45,0,-45,'#ff0000',1); this.alpha = 0; Laya.stage.addChild(this)...

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

268. 2.2.0beta2中,ui使用相对布局时初始化会报错 [ 52%]

...._widget没有值,   和以前的版本对比,是因为this._widget和super()的位置对调了,导致在createChildren()时_widget还没有进行初始化   2.2.0beta2   以前的版本   附件 : --> LayoutTest2.zip 2019-08-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

269. spine动画放大后,遮罩显示不正常 [ 52%]

...ene文件 export default class GameUI extends Laya.Scene { constructor() { super(); //设置单例的引用方式,方便其他类引用 GameUI.instance = this; //关闭多点触控,否则就无敌了 Laya.MouseManager.multiTouchEnabled = false; //加载场景文件 this.loadScene("test/TestScene...

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

270. 我想动态改自定义shader里的值,应该怎么写?? [ 52%]

...erial.js:34 (anonymous) function CustomMaterial() {     CustomMaterial.__super.call(this);     this.setShaderName("CustomShader"); }   Laya.class(CustomMaterial, "CustomMaterial", Laya.BaseMaterial);   CustomMaterial.DIFFUSETEXTURE = 1; CustomMaterial.NORMALTEXTURE = 2; CustomMaterial.ALPHATES...

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