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

大约有 1,625 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0050 秒)

1021. ComboBox属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 62%]

...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

1022. 分享一个自己做的游戏公告功能,跑马灯效果 [ 62%]

...于播放状态 */ 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

1023. 3D粒子特效初始化卡顿 [ 62%]

... 分组资源在地图变化时自动销毁 * **/ 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

1024. 缓动-简单的Tween [ 62%]

...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

1025. 性能测试-虫子(慎入) [ 62%]

...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

1026. UI-RadioGroup [ 62%]

... + 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

1027. UI-RadioGroup [ 62%]

... + 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

1028. Scene.load加载的时候无法正确的识别ResourceVersion [ 62%]

...是这样处理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

1029. laya.d3.core.material.BaseMaterial [ 61%]

...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

1030. 分享:销毁龙骨动画! [ 61%]

....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