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

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

211. 在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

212. 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

213. button 按下放缩特效 [ 56%]

...  /**      * 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

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

...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

215. FontChip不能显示 [ 56%]

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

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

216. 自定义组件用的layaeditor.d.zip报错 [ 56%]

...上论坛求助了。 比如这么一个报错的地方: class Component extends laya.ui.Component implements laya.ui.IComponent { _getBoundPointsM(ifRotate?: boolean): Array<any>; disableLayout: boolean; protected resetLayoutX(): void; protected resetLayoutY(): void; } 类laya.ui.Component ...

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

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

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

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

218. 异步加载一个UI对象时的问题 [ 56%]

...此我将load方法放到了createChildren函数里面去。 class MyView extends ui.view.MyViewUI { constructor() { super(); } createChildren():void { super.createChildren(); let assets = [ { url: "res/atlas/ui/shared.atlas", type: Loader.ATLAS }, { url: "res/atlas/ui/myview.atlas", type: Loader.AT...

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

219. 提示错误在laya.core.js里 [ 56%]

...是要把unity场景导入到laya2.6. export default class SceneLoad extends Laya.Script{     constructor(){         super();     }     onAwake(){         Laya.Scene3D.load("res/LayaScene_demo/Android/demo.ls",Laya.Handler.create(this,function(scene){        ...

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

220. 在Unity中设置动画事件(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 56%]

...名。 ```typescript import laya.d3.component.Script3D; class SceneScript extends Script3D { //用于表现的方法 public var showMsgFunc:Function; public function SceneScript() { } //对应unity添加的AnimationEvent的动画事件函数,名字是可以对应上的 public function ShowMsg():vo...

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