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

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

1531. 请问,如何获得StandardMaterial,为什么transformUV始终是null [ 41%]

...   Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(null, function () {         var changeActionButton = Laya.stage.addChild(new Laya.Button("../../res/threeDimen/ui/button.png", "正常模式"));         changeActionButton.size(160, 40);         changeAction...

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

1532. Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 [ 41%]

..."res/atlas/comp.atlas", type:Loader.ATLAS}); Laya.loader.load(res, Handler.create(null, this.__onLoaded)); } private __onLoaded(): void { Laya.stage.addChild(new Test()); } } new Entry();   Test.ts import Sprite = Laya.Sprite; class Test extends Sprite{ constructor(){ super(); this._initView(); } p...

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

1533. Clip属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 41%]

...资源 Laya.loader.load([buttonSkin, clipSkin, bgSkin], laya.utils.Handler.create(this,onSkinLoaded)); } /***加载资源完成***/ private function onSkinLoaded(e:*=null):void { //显示背景图 showBg(); //创建计数器 createCounter(); //显示总数 showTotal(); //创建控制按钮 createCon...

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

1534. CheckBox属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 41%]

...onLoaded回调方法 Laya.loader.load([this.skin1,this.skin2],Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个CheckBox实例cb1 var cb1:Laya.CheckBox = new Laya.CheckBox(this.skin1); //添加到舞台上显示 Laya.stage.addChild(cb1); //设置checkbox的坐标位...

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

1535. ViewStack属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 41%]

...行onLoaded回调方法 Laya.loader.load("./res/atlas/ui.atlas", Handler.create(this, onLoaded)); } private function onLoaded():void { //创建一个UI实例 comp = new ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(comp); //点击Tab选择按钮的处理 comp.tab.selectHandler=ne...

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

1536. StaticModel_MeshSample例子运行不起来 [ 41%]

...例子里,UI组件的事件都用new Handler,而资源加载用Handler.create() 问题状态 最新活动: 2016-12-01 16:55 浏览: 2147 关注: 2 人

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

1537. 报无法找到资源,未升级ide之前不报错 [ 41%]

...错 问题如图所示,资源路径正确,就是报找不到 private createAniTemplate(name: string, len: number = 8): void {     let aniFrames: Array<string> = [];     for (let i: number = 0; i < len; i++) {         aniFrames.push("resources/UI/role/atlasAni2/139x/" + name + i ...

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

1538. 富文本过程中我遇到的问题以及解决方法(超链接换行以及无法接收超链接鼠标事件以及br或者 标签会崩溃报错的问题) [ 40%]

...      if (tword.y != tStartWord.y) {                     this.createOneLine(tStartWord, tEndWord, hasLine, g, recList);                     tStartWord = tword;                     tEndWord = tword;                 }                 else {         ...

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

1539. CheckBox属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 40%]

...功后,执行onLoad回调方法 Laya.loader.load([skin1,skin2], Handler.create(this, onLoaded)); } private function onLoaded():void { //创建一个CheckBox实例cb1 var cb1:CheckBox = new CheckBox(skin1); //添加到舞台上显示 Laya.stage.addChild(cb1); //设置checkbox的坐标位置 cb1.pos...

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

1540. 分包后, 资源加载问题 [ 40%]

...le,并添加到舞台显示 Laya.loader.load("js/loading100.js", Handler.create(this, complete), null, Loader.TEXT); } private function complete(data:*):void { trace("ok3") __JS__("window.eval(data)"); //此行报错 var load:* = __JS__('new loading100()'); Laya.stage.addChild(load); trace("loadin...

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