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

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

1941. 使用layacmd资源版本管理时,与res相同目录的未打包的大图片改怎么处理呢 [ 48%]

...am originURL 源路径 * @return 格式化后的新路径 */ public static function addVersionPrefix(originURL:String):String { if (manifest && manifest["resource/"+originURL]) return manifest["resource/"+originURL] + "/resource/" + originURL; return originURL; ...

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

1942. 设置自动竖屏后 打包APP 安装到手机后显示黑屏 不设置自动竖屏又正常 [ 48%]

...手机后显示黑屏 不设置自动竖屏又正常         public function LayaSample()         {             //初始化引擎,建议增加WebGl模式             Laya.init(720, 1280,WebGL); //            Stat.show();             //全屏不等比...

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

1943. laya.d3.component.LODGroup_API3.0 [ 48%]

...t onStart onUpdate LODInfo tempVec tempVec1 Legend Object literal Variable Function Type alias Class Class with type parameter Constructor Accessor Inherited property Inherited method Inherited accessor Enumeration Interface

来源: Laya3.0_api 发布时间: 20231115

1944. 背景音乐播放内存问题 [ 47%]

...的WebAudioSound类的dispose方法改了,改成了这样:   public function dispose():void { delete _dataCache[url]; delete __loadingSound[url]; this.audioBuffer = null; this.data = null; this.__toPlays = []; super.dispose(); }   如果不添加最后4行代码的话,每次切换回来内...

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

1945. laya.d3.utils.Physics3DUtils_API3.0 [ 47%]

... getIColliderCollision setColliderCollision Legend Object literal Variable Function Type alias Class Class with type parameter Constructor Static property Static method Enumeration Interface

来源: Laya3.0_api 发布时间: 20231115

1946. laya.ui.Tree_API3.0 [ 47%]

...ils.Browser; import laya.utils.Handler; public class Tree_Example { public function Tree_Example() { Laya.init(640, 800); Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vscroll.png", "resource/ui/vscroll$bar.png", "resource/ui/vscroll$down.png", "resou...

来源: Laya3.0_api 发布时间: 20231115

1947. 自定义shader-边缘光照shader [ 47%]

...en/skinModel/dude/dude.lh")); dude.once(Laya.Event.HIERARCHY_LOADED, this, function () { var customMaterial1 = new CustomMaterial(); customMaterial1.setDiffuseTexture(Laya.Texture2D.load("../../res/threeDimen/skinModel/dude/Assets/dude/head.png")); customMaterial1.setMarginalColor(new Laya.Vector3(1...

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

1948. JSONP跨域读取数据(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 47%]

... ```javascript var http = require("http"); var sever = http.createServer(function(req,res){ res.end("LayaSample.onComplete()"); }); sever.listen(9090) ``` ```javascript res.end("LayaSample.onComplete()"); ``` 这句话的意思是服务器回传给客户端LayaSample.onComplete()并且执行这个...

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

1949. laya.gltf.glTFUtils_API3.0 [ 47%]

...apMode getTexturewithInfo pickMeshMaterials Legend Object literal Variable Function Type alias Class Class with type parameter Static property Static method Enumeration Interface

来源: Laya3.0_api 发布时间: 20231102

1950. LayaAir2.0开始就无法设置透明背景了吗? [ 47%]

LayaAir2.0开始就无法设置透明背景了吗? public function Main() { //根据IDE设置初始化引擎 Config.isAlpha = true; Laya.init(480, 900); Laya.stage.bgColor = "none"; }   AS3版,从Laya1.x升级过来之后,发现2.0-2.8都无法通过这个来设置背景透明。 这让人...

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