大约有 1,234 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0058 秒)
Laya_社区(703) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(76) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
...oad(url, Handler.create(this, byteLoadComplete,[url]),null,Loader.BUFFER); private function byteLoadComplete(url:String):void { var buffer:ArrayBuffer = Laya.loader.getRes(url); var byte:Byte = new Byte(buffer); byte.writeArrayBuffer(buf...
来源: Laya_社区 发布时间: 20170417
.../ui/input.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { var textInput:TextInput = new TextInput("这是一个TextInput实例。");//创建一个 TextInput 类的实例对象 textInput 。 textInput.skin = "resource/ui/input.png";//设置 te...
来源: Laya3.0_api 发布时间: 20231115
...} from './public/Game'; import Stage = Laya.Stage; export class TexasMain{ private balls:Laya.Sprite = ; constructor(){ Config.isAntialias = true // alert("宽"+Laya.Browser.clientWidth+"高"+Laya.Browser.clientHeight ); // Laya.init(Laya.Browser.clientWidth,Laya.Browser.clientHeight, Laya.WebGL ); ...
来源: Laya_社区 发布时间: 20180226
...f(item != null){ item = item.getChildAt(0).clone(); Instantiate(item); } } private function Instantiate(item:Sprite3D):void { effect3D = item; //effect3D.active = true; this.addChild(effect3D); //console.hylog("_path:",_path); SetUVEffect(effect3D); }
来源: Laya_社区 发布时间: 20180425
... = Laya.WebGL; import Event = Laya.Event; export class Sprite_DrawShapes { private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(740, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya....
来源: Laya_社区 发布时间: 20170425
.../ui/input.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { var textArea:TextArea = new TextArea("这个一个TextArea实例。");//创建一个 TextArea 类的实例对象 textArea 。 textArea.skin = "resource/ui/input.png";//设置 textArea ...
来源: Laya3.0_api 发布时间: 20231115
...显示在loadingView界面上的Tips,在RuntimeProxy.java文件中修改private int[] mTips的值,即可决定哪个Tips会出现在界面上。 2.进度条控制实例 在实际开发过程中,通常想要精确控制LoadingView的隐藏和显示,那么开发者可以在config.js中设置lo...
来源: Laya3.0_文档 发布时间: 20251010
...复 Laya_Aaron 赞同来自: a503807636 // 程序入口 class LayaAir3D { private _quaternion: Laya.Quaternion = new Laya.Quaternion(); constructor() { //初始化引擎 Laya3D.init(0, 0, true); //适配模式 Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NO...
来源: Laya_社区 发布时间: 20180302
...esource/ui/clip_tree_arrow.png"], Handler.create(this, onLoadComplete)); } private function onLoadComplete():void { var xmlString:String;//创建一个xml字符串,用于存储树结构数据。 xmlString = "<root><item label='box1'><abc label='child1'/>&a...
来源: Laya3.0_api 发布时间: 20231115
...享画布类型**/ public static var SHAREDRESIZE:String = "sharedresize"; private static var _i:MsgMgr = null; public function MsgMgr() { super(); } public static function get instance():MsgMgr { return _i ||= new MsgMgr(); } /**初始化消息监听**/ public function init():void { //接收主域...
来源: Laya_社区 发布时间: 20180525