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

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

481. list item 添加事件后无法监听 [ 45%]

...(this.img);   this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box);   // 主要逻辑代码 var Stage   = Laya.Stage; var List    = Laya.List; var Handler = Laya.Handler; var WebGL   = Laya.WebGL;     (function() { // 不支持WebGL时自动切换至Canvas L...

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

482. laya.d3.core.Camera [ 45%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames CameraProperties | Methods | Events | Constants Packagelaya.d3.coreClasspublic class CameraInheritanceCamera BaseCamera Sprite3D ComponentNode Node EventDispatcher Object Camera 类用于创建摄像机。 Public Prope...

来源: laya_api 发布时间: 20170929

483. LayaAir下如何分包? [ 45%]

... module.def 要这样写:  module:"../res/js/maingame" path:"modules\class\src"编译完成后,maingame.js 就不会被单独放置到 js目录下,而是放置到了 res/js 目录。     2017-07-31 0 0 分享 微博 QZONE 微信 sevennqi 赞同来自: 。。。。。。 2017-08-04 0 0 分...

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

484. Spine适配版(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 45%]

...以在舞台上显示多个动画。 代码示例: ```typescript public class Main { private var aniPath = "res/bone/spineboy-pma.skel"; private var templet:SpineTempletBinary; private var skeleton:SpineSkeleton; private var index: Number = -1; public function Main() { Laya.init(Browser.width, Bro...

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

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

...名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:70...

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

486. Cannot read property 'toDefault' of undefined报错是什么原因 [ 45%]

...ty 'toDefault' of undefined报错是什么原因 主要代码如下:Laya.class(MousePickingScene, "MousePickingScene", Laya.Scene); function MousePickingScene() { MousePickingScene.super(this); this.camera = new Laya.Camera(0,0.1,100); this.addChild(this.camera); this.camera.clearFlag = Laya.BaseC...

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

487. unity导出的场景.ls加载到laya3d中报错 [ 45%]

...容相关的链接 提交 6 个回复 fx_guo 赞同来自: 程序代码: class LayaAir3D { constructor() { //初始化引擎 Laya3D.init(0, 0,true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); //添加3D场景 var scene = Laya.Sce...

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

488. 请问laya有没有类似翻页容器(pageView)的组件? [ 45%]

..."../data/ConfigInfo"; import { ui } from "../ui/layaMaxUI"; export default class RuleDialog extends ui.scene.RuleDialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(thi...

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

489. 帮忙看看Texture类getPixels内存泄漏的问题。 [ 45%]

...aya.utils.Handler; import laya.utils.Stat; import laya.webgl.WebGL; public class Main { private var _tex:Texture; private var _htmlCanvas:HTMLCanvas; private var _colorSpr:Sprite; private var _colorTex:Texture; private var _initPixelCount:int; public function Main() { Laya.init(1024, 768, WebGL); St...

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

490. 求HTTP相关的文档或者例子谢谢了 [ 45%]

...; import flash.net.URLRequestMethod; import flash.net.URLVariables; public class HTTP_URLRequest extends Sprite { public function HTTP_URLRequest() { if(stage) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=null):void { //第一步:加载数...

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