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

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

211. 内嵌模式创建scene,运行时报找不到json文件 [ 59%]

...ide自动生成的代码。     export module ui { export class HelloUI extends Scene { public static uiView:any ={"type":"Scene","props":{"width":640,"height":1136},"compId":2,"child":[{"type":"Label","props":{"y":64,"x":214.5,"width":211,"text":"label","styleSkin":"comp/label.png","height":67},"...

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

212. [LayaAir 2.0] 如何用代码为Spirte添加2d物理特性 [ 59%]

...性 官方的2d物理引擎文档都是IDE篇的。   class CollisionBoll extends Laya.Sprite { private _boll1:Laya.Sprite; constructor() { super(); //物理模块 this._boll1 = new Laya.Sprite(); this.addChild(this._boll1); this._boll1.x = 20; this._boll1.loadImage('comp/btn_close.png'); let box:l...

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

213. 按钮组件 · LayaAir3.0文档 · LAYABOX [ 59%]

... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Button }) public btn: Laya.Button; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.btn.scale(5, 5); //放...

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

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

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

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

215. webgl模式下对Panel组件旋转时Panel子对象显示错误的BUG! [ 59%]

...en.to(testSpriteRotation,{rotation:720},8000); } } class PanelRotationTest extends Laya.Sprite{ constructor(displayContainerClass:any){ super(); // var panel:Laya.Panel = new Laya.Panel(); //panel 有问题 // var panel:Laya.Sprite = new Laya.Sprite(); //sprite 无问题 var panel = new displayConta...

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

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

...进行监听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. 学会编写d.ts声明文件(TypeScript-IDE篇(TS)-代码模式基础) [ 59%]

...interface IOctreeOptions { root: Octree; aabb: AABB; } export class Octree extends OctreeNode { maxDepth: number; constructor(aabb: AABB, options: IOctreeOptions); aabbQuery(aabb: AABB, result: Object[]): Object[]; insert(aabb: AABB, elementData: Object): boolean; rayQuery(ray: Ray, treeTransform: T...

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

218. ProgressBar 代码问题 [ 59%]

...}); 进度条代码: 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

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

...  /**      * 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. FontChip不能显示 [ 59%]

...ue = "a1326";//显示"a1326"文字      */     public class FontClip extends Clip {         /**数值*/         protected var _valueArr:String;         /**文字内容数组**/         protected var _indexMap:Object;         /**位图字体内容**/         ...

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