大约有 321 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0042 秒)
Laya_社区(121) Laya2.0_示例(67) Laya_示例(66) Laya2.0_文档(39) Laya3.0_api(21) Laya2.0_api(4) laya_api(3)
...x; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Handler; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(700,600); Laya.loader.load('res/apes/monkey2.png',Handler.create(this,onLoaded)) } private function onLoaded():void { var texture:Texture=Loader.ge...
来源: Laya_社区 发布时间: 20170414
...加载这个文件的时候 Laya.loader.load([{ url: "button_font.fnt" }], Handler.create(null, onLoaded)); 图片里的 type="font",最终执行的 tempData=data.data; tempData 直接就是button_font.fnt里面内容的字符串类型MiniLoader.onReadNativeCallBack=function(encoding,url,type,cach...
来源: Laya_社区 发布时间: 20180704
...ya.ui.Button; import laya.ui.Clip; import laya.ui.Image; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_Clip { /***控制器按钮资源***/ private var buttonSkin:String = "../../../../res/ui/button-7.png"; /***切片资源***/ private var clipSkin:String = "../../../../res/ui/...
来源: Laya2.0_文档 发布时间: 20210714
...e; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Handler; public class Main { public function Main() { //初始化引擎 Laya.init(600, 800); //加载引擎需要的资源 Laya.loader.load([{url:"res/atlas/atlas_res.json",type:Loader.ATLAS}], Handler.create(this, onLoaded))...
来源: Laya_社区 发布时间: 20160707
...ent; import laya.resource.Texture; import laya.ui.Image; import laya.utils.Handler; import laya.utils.Stat; import common.CameraMoveScript; public class OrthographicCamera { /** * (pos.x pos.y) 屏幕位置 * pos.z 深度取值范围(-1,1); * */ private var pos:Vector3 = new Vector3(310, 500, 0); pr...
来源: Laya_示例 发布时间: 20251130
...自: 服务器需要按照http协议进行解码,WebSocketServerProtocolHandler处理数据 我这边用的netty4.x 下面是管道处理流程 //HttpServerCodec: 针对http协议进行编解码 pipeline.addLast("httpServerCodec", new HttpServerCodec()); //ChunkedWriteHandler分块写处理,文...
来源: Laya_社区 发布时间: 20170209
...ane.lh", "../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh" ], Laya.Handler.create(this, onComplete)); var _quaternion = new Laya.Quaternion(); Laya.timer.frameLoop(1, null, function () { Laya.Quaternion.createFromYawPitchRoll(0.025, 0, 0, _quaternion); var _direction = directionLight.directi...
来源: Laya_示例 发布时间: 20251130
....ui.Button; import laya.ui.Dialog; import laya.ui.Image; import laya.utils.Handler; import laya.webgl.WebGL; public class DialogCenterClose { private const DIALOG_WIDTH:int = 220; private const DIALOG_HEIGHT:int = 275; private const CLOSE_BTN_WIDTH:int = 43; private const CLOSE_BTN_PADDING:int = 5; ...
来源: Laya_社区 发布时间: 20170706
... import laya.events.Event; import laya.resource.Texture; import laya.utils.Handler; import laya.utils.Stat; import common.CameraMoveScript; public class Sprite3DLoad { public function Sprite3DLoad() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCR...
来源: Laya_示例 发布时间: 20251130
...; import laya.display.Sprite; import laya.display.Stage; import laya.utils.Handler; import laya.net.Loader; import laya.events.Event; public class LayaUISample { protected var text:Text; protected var aaa:AAA; public function LayaUISample() { Laya.init(1540, 990); Laya.Stat.show(); Laya.loader.load(...
来源: Laya_社区 发布时间: 20161026