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

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

1951. Image加载完成后的图片大小重设问题 [ 52%]

...   constructor() {         super();        init();     }     public init ():void     {         this.bg_img.loadImage("ui/bg.jpg",0,0,Laya.stage.width,Laya.stage.height,Laya.Handler.create(this,this.onComplete));         Laya.stage.on(Laya.Event.RESIZE,this,this.onResize);   ...

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

1952. 灯光-聚光 [ 52%]

...aya.utils.Stat; import common.CameraMoveScript; /** * ... * @author ... */ public class SpotLightDemo { private var _quaternion:Quaternion = new Quaternion(); private var _position:Vector3 = new Vector3(); public function SpotLightDemo() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stage.SCALE_...

来源: Laya_示例 发布时间: 20260106

1953. 2.0.0beta5版本drawPoly设置坐标失效 [ 52%]

...n 赞同来自: WebGLContext2D 类里面  如下方法 修改后即可   public function addPath(points:Array, close:Boolean, convex:Boolean, dx:Number, dy:Number):void { var ci:int = 0; for (var i:int = 0, sz:int = points.length / 2; i < sz; i++) { var x1:Number = points[ci]+dx, y1:Number = po...

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

1954. 加载-销毁Texture使用的图片资源 [ 52%]

...mport laya.utils.Handler; import laya.utils.Stat; import laya.webgl.WebGL; public class Loader_ClearTextureRes { private var spBg:Sprite; private var aniFly:Animation; private var btn:Sprite; private var txt:Text; private var isDestroyed:Boolean = false; private const PathBg:String = "../../res/bg2....

来源: Laya2.0_示例 发布时间: 20260106

1955. scaleMode 用法 [ 52%]

...幕长宽比,自动选择使用SCALE_FIXED_WIDTH或SCALE_FIXED_HEIGHT*/ public static const SCALE_FIXED_AUTO:String = "fixedauto";

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

1956. 关于新的微信小游戏本地缓存API建议 [ 52%]

...它格式文件实际也是需要缓存的 而新提供的手动缓存API public static function downLoadFile(fileUrl:String, fileType:String = "",callBack:Handler = null,encoding:String = "ascii"):void   和原有loader加载方式产生分裂,导致游戏加载代码不统一,并且...

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

1957. 有震屏的算法吗 [ 52%]

...aram times    * @param offset    * @param speed    *    */     public function stageShake(callBack:Function = null, times:uint = 2, offset:uint = 12, speed:uint = 32):void   {    if(_isShake) return;        _isShake = true;    var num:int = 0;    var offsetArr:Array = [0...

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

1958. 背景音乐文件太大 播放延迟 [ 52%]

...Laya.Loader.SOUND, 0, true, null, false)         })       public static playBackGroundMusic(url: string, start: number) {         if (soundMsg.isPlayingBgMusic) {             let path = "remote/music/" + url + '.mp3';             Laya.S...

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

1959. __JS__(as变量)为什么不能用? [ 52%]

... /*[IF-FLASH]*/ package {     /**      * @private      */     public function __JS__(value:*):* {         return null;     } } 这句话是什么意思~~~~~~查也查不到~在Laya源代码里面看到的 2018-03-21 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复...

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

1960. UI-Clip [ 52%]

... import laya.ui.Image; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_Clip { private var buttonSkin:String = "../../res/ui/button-7.png"; private var clipSkin:String = "../../res/ui/num0-9.png"; private var bgSkin:String = "../../res/ui/coutDown.png"; private var counter:Clip; p...

来源: Laya2.0_示例 发布时间: 20260106