大约有 1,561 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0072 秒)
Laya_社区(554) Laya3.0_api(360) Laya2.0_api(247) laya_api(208) Laya2.0_文档(120) Laya3.0_文档(70) Laya2.0_示例(2)
...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
...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
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
...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
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
...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
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
...己的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
...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
...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