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

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

171. ShaderPass介绍(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 66%]

...ayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", Laya.Handler.create(this, function(mesh) { var layaMonkey = scene.addChild(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.7...

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

172. 布局后的对象的x y坐标如何获取? [ 65%]

...和centerY后,就无法获取到这个Box的坐标了呀? console.log(this.test1.x ) //结果是 0  但console.log 这个对象,可以看到_x _y 的坐标   请问如何获取到这个被布局后的x y坐标呀? 附件 : --> 2019-07-01 添加评论 免费帖 --> 分享 微博 QZONE...

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

173. 真机调试 开启子域后 提示出现window is not defined [ 64%]

...      ↓按钮回调 绘制子域到工程 bt_rank_call_back(body){   this.bt_rank.CALL_BACK = function () { console.log("排行榜") var player_rank = body.wxData.get_canvas_4_code("SHOW_PLAYER_RANK",0) var rankTexture = new Laya.Texture(sharedCanvas); rankTexture.bitmap.alwaysChange = true; v...

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

174. 怎么获取Skeleton下模型的大小 [ 64%]

...邀请: 与内容相关的链接 提交 1 个回复 赵滔 赞同来自: this._skeleon.play(0); //需要设置一次先才能获取大小   var boundsW: number = skeleon.getBounds().width; var boundsH: number = skeleon.getBounds().height; 2019-06-17 0 0 分享 微博 QZONE 微信 为什么被折叠...

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

175. Steam扩展实例 · LayaAir3.4 · 引擎文档 · LAYABOX [ 64%]

...perty({type: Laya.Button}) public initBtn: Laya.Button; onEnable(): void { this.initBtn.on(Laya.Event.CLICK, this.onInit); } onInit() { alert(extendLib.initializeSteam()); } } 构建发布Windows后,需要在exe的同级目录下,新建一个steam_appid.txt 文件,其中只包含 AppID。 (...

来源: Laya3.0_文档 发布时间: 20251010

176. 没有var属性的组件怎么获取到这组件的对象 [ 63%]

...bohan • 2018-07-10 17:27 我怎么改变它的值呢,扇形我是通过this._graphics._one[3] = number;来改变数值的,里面的圆形改变颜色改变不了了 Laya_Aaron • 2018-07-10 17:32 这个要重新画才能改。 bohan • 2018-07-10 18:01 @Laya_Aaron:我现在,在代码里...

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

177. 组件装饰器说明 · LayaAir3.4 · 引擎文档 · LAYABOX [ 63%]

... number = 0; @property( { type : Number } ) get weight() : number { return this._weight; } //如果没有 Setter,则 weight 为只读属性 set weight(value: number) { this._weight = value; } } 2.3 是否序列化保存 serializable 通过装饰器定义为组件属性后,默认状态下,属...

来源: Laya3.0_文档 发布时间: 20251010

178. 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 [ 63%]

...stage.bgColor = "#ffffff"; if (Browser.onMiniGame) { Laya.timer.once(1000, this, function():void{ //设置共享画布大小 __JS__('sharedCanvas').width = Laya.stage.width; __JS__('sharedCanvas').height = Laya.stage.height; //主域往子域透传消息 __JS__('wx').postMessage({type:"resizeShared"...

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

179. laya.utils.Tween.to的第一个参数可以是个label? [ 62%]

...属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。          * @param    duration 花费的时间,单位毫秒。          * @param    ease 缓动类型,默认为匀速运动。          * @pa...

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

180. 微信开发者工具,打开Laya发布的包。编译报请先初始化小游戏适配库,详细教程 [ 62%]

...命名1112.png Wechat Lib:1.9.98, 2018.4.4 17:39:27 code.js:107 Warning!,this class[MiniAdpter] already exist: {init: ƒ} VM163:1 请先初始化小游戏适配库,详细教程https://ldc.layabox.com/doc/?nav=zh-ts-5-0-0 console.error @ VM163:1 Browser.__init__ @ code.js:7131 (anonymous) @ code.js...

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