大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0081 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...ic class Main extends Sprite { public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function setWindowFullSize() : void ...
来源: Laya_社区 发布时间: 20170317
...Laya.stage.bgColor = "#232628"; this.createText(); } private createText(): void { this.txt = new Text(); this.txt.overflow = Text.SCROLL; this.txt.text = "Layabox是HTML5引擎技术提供商与优秀的游戏发行商,面向AS/JS/TS开发者提供HTML5开发技术方案!\n" + "Layabox是HTML5...
来源: Laya_示例 发布时间: 20260303
...ion0:Vector3, position0:Vector3, lastPosition1:Vector3, position1:Vector3):void[override] 初始化插值所需信息。 SplineCurvePosition Slerp(t:Number, out:Vector3):void 初始化插值所需信息。 SplineCurvePositionVelocityConstructor DetailSplineCurvePosition()Constructorpublic function ...
来源: laya_api 发布时间: 20170929
... * @param t * @param rst * */ getPoint2(t: number, rst: Array<any>): void; /** * 计算三次贝塞尔点 * @param t * @param rst * */ getPoint3(t: number, rst: Array<any>): void; /** * 计算贝塞尔点序列 * @param count * @param rst * */ insertPoints(count: number, rst: Array<an...
来源: Laya_社区 发布时间: 20170328
...plet.loadAni("res/spine/goblins/goblins.sk"); } private function onError():void { trace("parse error"); } private function parseComplete():void { //创建第一个动画 var skeleton0:Skeleton; //从动画模板创建动画播放对象 skeleton0 = templet.buildArmature(0); skeleton0.pos(200, 700); /...
来源: Laya2.0_文档 发布时间: 20210715
...tic function createTexture(s:Sprite,callback:Function,callbackThis:Object):void{ createTextureCallBack = callback; var htmlCanvas:HTMLCanvas = s.drawToCanvas(512,512,0,0); var realCanvas:* = htmlCanvas.getCanvas(); var img:* = Browser.window.convertCanvasToImage(realCanvas,createTextureOnImgReady,ca...
来源: Laya_社区 发布时间: 20170718
...bindList=[]; } /** * 绑定 * @param source */ bind(source:BindSource):void{ let index:number=this.__bindList.indexOf(source); if(index<0){ this.__bindList.push(source); } this.addChild(source); this.timer.frameLoop(1,this,this.__updateBinds); } unbind(source:BindSource):void{ let index:n...
来源: Laya_社区 发布时间: 20190805
...使用CLICK 的(以下代码来自“2D入门示例”): onEnable(): void { console.log("IndexRT onEnable") //侦听ui按钮点击事件 this.uiBtn.on(Laya.Event.CLICK, this, () => { //点击后,打开UI场景示例 console.log("uiBtn"); Laya.Scene.open("scenes/UiMain.ls"); }); //侦听...
来源: Laya3.0_文档 发布时间: 20251010
...); Laya.stage.on("click", this, this.onStageClick); } private createMap(): void { this.tiledMap = new TiledMap(); this.tiledMap.createMap("../../res/tiledMap/isometric_grass_and_water.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(this, this.mapLoaded), null, new Poi...
来源: Laya_示例 发布时间: 20260303
...绘制图形后,mouse_over触发scale显示有问题 private _initView():void { if(this._objectInfo.templateInfo.type == "hole") { this._body = new Sprite(); this._body.graphics.drawCircle(0, 0, this._objectInfo.templateInfo.width, "#ff0000"); this._body.width = this._objectInfo.templateInfo.width...
来源: Laya_社区 发布时间: 20180308