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

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

921. 骨骼动画-藤蔓 [ 84%]

... private var mCurrSkinIndex:int = 0; private var mFactory2:Templet; public function Skeleton_SpineVine() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Stat.show(); startFun(); } public function startFun():void { mAniPath = "../../res/spine/spineRes5/vine...

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

922. 微信小游戏加了子域报错 [ 84%]

...ght TypeError: Cannot read property 'USER_DATA_PATH' of undefined     at Function.MiniFileMgr.setNativeFileDir (laya.wxmini.js:682)     at Function.MiniAdpter.init (laya.wxmini.js:92)     at Function.MiniAdpter.enable (laya.wxmini.js:78)     at Function.Browser.__init__ (laya.core.js:4135) ...

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

923. 骨骼动画-橡胶人 [ 84%]

... private var mCurrSkinIndex:int = 0; private var mFactory2:Templet; public function Skeleton_SpineStretchyman() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Stat.show(); startFun(); } public function startFun():void { mAniPath = "../../res/spine/spineRe...

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

924. 绘制三角形、多边形及根据数据绘制图案(JavaScript-LayaAir基础篇(JS)-矢量图) [ 84%]

...yaAir引擎先绘制一个三角形,示例代码如下: ```javascript (function() {     var Sprite = Laya.Sprite;     var Stage  = Laya.Stage;     var WebGL  = Laya.WebGL;     var sp;        (function()     {         //初始化舞台,不支持WebG...

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

925. 关于3d项目中component的问题 [ 84%]

...始移动 这是为什么呢? 以下是我的代码,请大家指正!(function () { var convertTranslate = new Laya.Vector3(0, 0, 0); function CmpScript() { CmpScript.super(this); this.x = 0; } Laya.class(CmpScript, "CmpScript", Laya.Script) CmpScript.prototype._initialize = function (owner) { ...

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

926. Sprite-缓存为静态图像 [ 84%]

...ipt、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Text = Laya.Text; var Stat = Laya.Stat; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage...

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

927. Laya.Handler.create 加载图片回调参数问题 [ 84%]

... sp.loadImage("res/img/popular.png", 0, 0, 0, 0, Laya.Handler.create(this, function (a1, a2) { console.log(a1, a2); }), [100]);   为什么不能把Laya.Hander.create后面带的这个参数传到Function里面?       附件 : --> 2018-06-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

928. LayaAir下Array.sort如何使用? [ 84%]

...aya.init(550,400); var arr:Array=[20,40,10,4,34,23,65,5,8]; trace(arr.sort(function(a:*, b:*):Number { return a.x > b.x ? 1 : -1}));(反序)Laya.init(550,400); var arr:Array=[20,40,10,4,34,23,65,5,8]; trace(arr.sort(function(a:*, b:*):Number { return a.x > b.x ? -1 : 1}));(从小到大...

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

929. Laya.loader.create 报错, 升级2.0.2后 游戏卡顿 [ 84%]

...read property '_addReference' of undefined;at api request success callback function TypeError: Cannot read property '_addReference' of undefined     at t.<anonymous> (https://usr/game.js:49:8301)     at e.n._parse (https://usr/game.js:66:1995)     at Function.t._createNodeByJson (http...

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

930. Laya.loader.load 教程代码出错 [ 84%]

...mg:Sprite ;         private var index:int ;         public function LayaSample() {             //初始化引擎             Laya.init(600, 300);                          img = new Sprite();             var arr:Array = []; ...

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