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

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

951. swf转成H5资源显示超出原有范围 [ 81%]

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

952. 文本-滚动文本 [ 81%]

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

953. laya.d3.core.glitter.SplineCurvePosition [ 81%]

...ion0:Vector3, position0:Vector3, lastPosition1:Vector3, position1:Vector3):void[override] 初始化插值所需信息。 SplineCurvePosition Slerp(t:Number, out:Vector3):void 初始化插值所需信息。 SplineCurvePositionVelocityConstructor DetailSplineCurvePosition()Constructorpublic function ...

来源: laya_api 发布时间: 20170929

954. 关于bezier [ 81%]

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

955. 骨骼动画进阶(ActionScript-2D进阶篇(AS3)-动画进阶) [ 81%]

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

956. 分享:Sprite 转换成3D贴图(Texture2D)的方法,如果有更好的方法,请告诉我。 [ 81%]

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

957. Laya 绑定显示内容到骨骼动画 [ 81%]

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

958. 事件管理 · LayaAir3.4 · 引擎文档 · LAYABOX [ 81%]

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

959. 区块地图-等角地图 [ 81%]

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

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

...绘制图形后,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