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

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

211. 升级到1.78beta版后,包编译错误 [ 57%]

...0,11): error TS2417: Class static side 'typeof RenderTarget2D' incorrectly extends base class static side 'typeof Texture'.   Types of property 'create' are incompatible.     Type '(w: number, h: number, surfaceFormat?: number, surfaceType?: number, depthStencilFormat?: number,...' is not assigna...

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

212. Laya2.0正式版2D官方demo测试有问题 [ 57%]

...date()去调用的。 在编辑的时候两种onUpdate也是有差异的,extends Laya.Script的脚本中的onUpdate,鼠标移上去是有功能说明的:每帧更新时执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 此方法为虚方法,使用时重写覆盖...

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

213. 预制体 · LayaAir3.3 · 引擎文档 · LAYABOX [ 57%]

...: const { regClass, property } = Laya; @regClass() export class ScriptA extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type: Laya.Box } ) private box: Laya.Box; constructor() { super(); } onStart(): void { //加载预制体文件 Laya.loader.load("resources/Title.lh").then( (r...

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

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

...runtime属性绑定了一个类 绑定了这个类后, class TextInputEx extends Laya.TextInput constructor() { console.log("执行了"); super() ; } // 获取焦点 onFocus() : void { console.log("焦点进入"); // 是否缓存初始的文本提示字符串和文本颜色. if (!this.initText) { ...

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

215. Sprite设置mask属性为什么显示是透明的?怎样才能显示正常? [ 57%]

...明  var gameContainer = new Sprite(); gameContainer.loadImage("gameres/extend/micro/bg.png");  var mask = new Sprite(); mask.alpha = 0.3; mask.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); mask.on(Laya.Event.CLICK,this,chick);   function chick(){ mask.destroy(); gameCo...

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

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

...进行监听package { import laya.events.EventDispatcher; 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"); } } }...

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

217. ProgressBar 代码问题 [ 57%]

...}); 进度条代码: import Handler = Laya.Handler; export class Onloading extends ui.LoadingUI{        constructor(){        super();        this.loadingBar.changeHandler = new Handler(this, this.onChange); } public changeValue():void{        console.log("change");        if (th...

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

218. viewportPointToRay产生的射线始终有偏差,是为什么? [ 57%]

...Vector4; import WebGLContext = Laya.WebGLContext; export class SceneScript extends Script { private _originPosition:Vector3 = new Vector3(0, -1, 1); private _phasorSpriter3D:PhasorSpriter3D; private _color:Vector4 = new Vector4(1, 0, 0, 1); private _point:Vector2 = new Vector2(); private _camera:Cam...

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

219. button 按下放缩特效 [ 57%]

...  /**      * Graphics解析器      */     // class GraphicParser extends laya.display.GraphicAnimation {     //     protected _getTextureByUrl(url: string): string;     //     static parseAnimationData(aniData: any): any;     // } }   T15_UITest.zip 2017-08-17 0 0 分享 微博 ...

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

220. 取色器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 57%]

...nst { regClass, property } = Laya; @regClass() export class UI_ColorPicker extends Laya.Script { private skin: string = "atlas/comp/colorPicker.png"; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { La...

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