大约有 1,625 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0050 秒)
Laya_社区(663) Laya3.0_api(364) Laya2.0_api(194) laya_api(158) Laya2.0_文档(80) Laya_示例(58) Laya3.0_文档(54) Laya2.0_示例(54)
...ndler; import WebGL = Laya.WebGL; export class UI_ComboBox { private skin: string = "res/ui/combobox.png"; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stag...
来源: Laya2.0_文档 发布时间: 20210715
...于播放状态 */ isPlayIng:boolean = false /** 空格 */ private space:string = "<span> </span>" constructor() { super() this.width = 1200 this.height = 55 this.visible = false this.pos(565,150) this._createHorn() this._createBg() this...
来源: Laya_社区 发布时间: 20180314
... 分组资源在地图变化时自动销毁 * **/ public function Load(url:String,isGroup:Boolean):void { _path = UrlConfig.EFFECT_PATH_3D+url; var itemComplete:Sprite3D = Laya.loader.getRes(_path); if(itemComplete == null || itemComplete.loaded == false){ var groupName:String = null; if(isGroup == ...
来源: Laya_社区 发布时间: 20180425
...X; Tween.from(characterB, { x: 0 }, 1000); } private createCharacter(skin: string): Sprite { var character: Sprite = new Sprite(); character.loadImage(skin); Laya.stage.addChild(character); return character; } } } new laya.Tween_SimpleSample();package { import laya.display.Sprite; import laya.displa...
来源: Laya2.0_示例 发布时间: 20241126
...L = Laya.WebGL; export class PerformanceTest_Maggots { private texturePath:string = "res/tinyMaggot.png"; private padding:number = 100; private maggotAmount:number = 5000; private tick:number = 0; private maggots:Array = []; private wrapBounds:Rectangle; private maggotTexture:any; constructor() { La...
来源: Laya2.0_示例 发布时间: 20241126
... + this.X_OFFSET; rg.y = this.Y_OFFSET; } } private createRadioGroup(skin: string): RadioGroup { var rg: RadioGroup = new RadioGroup(); rg.skin = skin; rg.space = 70; rg.direction = "v"; rg.labels = "Item1, Item2, Item3"; rg.labelColors = "#787878,#d3d3d3,#FFFFFF"; rg.labelSize = 20; rg.labelBold = ...
来源: Laya_示例 发布时间: 20241126
... + this.X_OFFSET; rg.y = this.Y_OFFSET; } } private createRadioGroup(skin: string): RadioGroup { var rg: RadioGroup = new RadioGroup(); rg.skin = skin; rg.space = 70; rg.direction = "v"; rg.labels = "Item1, Item2, Item3"; rg.labelColors = "#787878,#d3d3d3,#FFFFFF"; rg.labelSize = 20; rg.labelBold = ...
来源: Laya2.0_示例 发布时间: 20241126
...是这样处理URL的: public static function addVersionPrefix(originURL:String):String { if (manifest && manifest[originURL]) { if (type == FILENAME_VERSION) return manifest[originURL]; return manifest[originURL] + "/" + originURL; } return originURL; } 在version.json,也就是manifest...
来源: Laya_社区 发布时间: 20180130
...l cloneTo(destObject:*):void 克隆。 BaseMaterial onAsynLoaded(url:String, data:*, params:Array):void[override] private BaseMaterial setShaderName(name:String):void 设置使用Shader名字。 BaseMaterialProtected Methods MethodDefined By _addDisablePublicShaderDefine(value:int):voi...
来源: laya_api 发布时间: 20170929
....Stat; import laya.webgl.WebGL; public class ASDemo { private var mAniPath:String; private var mFactory:Templet; private var mCurrIndex:int = 0; private var mArmature:Skeleton; public function ASDemo() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Stat.s...
来源: Laya_社区 发布时间: 20170406