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

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

881. 不能成功调用 DiaLog Close 关闭方法 [ 57%]

...ck); // 初始化 UI 界面显示 this.reset(); } // 注册 Start Laya.class(Start,"Start",_super); var _proto = Start.prototype; // 初始化 UI 界面显示 _proto.reset = function(){ } _proto.onBeginClick = function(){ dialog.close(); restart(); } _proto.onLinkClick = function(){ alert("***")...

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

882. 图集打包后使用Texture不显示,项目整个已经传上来了 [ 57%]

...Laya.Loader; import Texture = Laya.Texture; import Handler = Laya.Handler; class GameMain{ constructor() { Laya.init(600,400); this.hahaha(); } private hahaha(): void { var assets: Array<any> = []; assets.push({ url: "res/start.json", type: Loader.ATLAS}); Laya.loader.load(assets, Handler.crea...

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

883. laya.d3.core.render.BaseRender [ 57%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames BaseRenderProperties | Methods Packagelaya.d3.core.renderClasspublic class BaseRenderInheritanceBaseRender EventDispatcher ObjectImplements laya.resource.IDestroySubclasses GlitterRender, MeshRender, ShurikenParticleRend...

来源: laya_api 发布时间: 20170929

884. laya.resource.Resource_API3.0 [ 57%]

...ted Externals Only exported Menu Globals "laya/resource/Resource" Resource Class Resource Resource 资源存取。 Hierarchy EventDispatcher Resource BaseTexture BaseShader TextTexture HTMLCanvas BitmapFont Prefab Material Mesh Texture AtlasResource AnimationClip AnimatorController AnimationClip2...

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

885. TS项目怎么通过OC调用一个JS函数 [ 57%]

TS项目怎么通过OC调用一个JS函数 ts中的代码: class Native {     private setNativeListener(): void {         alert("oc call me to do someing");    } }   oc代码: [[conchRuntime GetIOSConchRuntime] runJS:@"Laya.Native.setNativeListener()"];   Laya改成Window也不行!  ...

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

886. laya.net.Socket_API3.0 [ 57%]

...ll Inherited Externals Only exported Menu Globals "laya/net/Socket" Socket Class Socket Socket 封装了 HTML5 WebSocket ,允许服务器端与客户端进行全双工(full-duplex)的实时通信,并且允许跨域通信。在建立连接后,服务器和 Browser/Client Agent 都能主动...

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

887. laya.d3.resource.RenderTexture [ 57%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames RenderTextureProperties | Methods | Constants Packagelaya.d3.resourceClasspublic class RenderTextureInheritanceRenderTexture BaseTexture laya.resource.Bitmap //RenderTexture 用于创建渲染目标。 Public Propert...

来源: Laya2.0_api 发布时间: 20190513

888. 自定义页面基的时候,会自动添加Laya命名空间导致报错 [ 57%]

...己的BaseView) declare module Laya{//在这个module里添加     class BaseView extends Scene{}//继承自Scene }里加上自己定义的页面,然后在编辑页面F9的Code导入里写上引用和赋值   import BaseView from "../BaseView"; Laya.BaseView = BaseView 2019-09-06 0 1 分...

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

889. 【简单跑酷--JS版】---Lv.4 添加玩家 [ 57%]

...er.JUMP = "player_jump"; //状态 Player.DIE = "player_die"; //Player Laya.class(Player,"Player", laya.display.Sprite); var _proto = Player.prototype; //是否缓存了 Player.cached = false; _proto.init = function(){ //动画缓存起来 if(!Player.cached){ Player.cached = true; //根据不同的...

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

890. 分享:SWF LABEL标签的使用! [ 57%]

...package { import laya.ani.swf.MovieClip; import laya.events.Event; public class SwfLabelUse { private var mc:MovieClip; public function SwfLabelUse() { Laya.init(600,600); Laya.stage.bgColor="#EEFFCC"; mc=new MovieClip(); mc.load("output/AAA.swf"); mc.on(Event.LOADED,this,onLoaded); Laya.stage.addCh...

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