大约有 1,118 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0051 秒)
Laya_社区(423) Laya3.0_api(324) Laya2.0_api(157) laya_api(90) Laya2.0_文档(47) Laya_示例(32) Laya3.0_文档(31) Laya2.0_示例(14)
... { function Loading_fly() { Loading_fly.super(this); this.onPlay(); } Laya.class(Loading_fly, "Loading_fly", _super) var _proto = Loading_fly.prototype; _proto.onPlay = function () { UIConfig.popupBgAlpha = 0.85; UIConfig.closeDialogOnSide = false; this.diango = new Laya.Dialog(); this.diango.width ...
来源: Laya_社区 发布时间: 20171107
...据实际情况修改。有需要的可以参考下/* * 位图字体; */ class BPFont extends Laya.Sprite { // 文本内容 private _text: string; // 水平排列方式 private _align: string; // 资源前缀 private resFix: string; // 间距 private _padding: number; // 位图集合 private chars: ...
来源: Laya_社区 发布时间: 20180302
...字段编译后会被注释 AS3中下面的一个简单的数据类 public class Demo { public var a:int; public var b:String; public function Demo() { } }通过编译后会变成下面的代码class Demo{ constructor (){ //this.a=0; //this.b=null; } }这里字段a和b在编译后会被注释掉,...
来源: Laya_社区 发布时间: 20210222
...xtField; import flash.text.TextFieldType; import flash.ui.Keyboard; public class TextInput extends Sprite { private var textInput:TextField; private var sourceWidth:Number; private var sourceHeight:Number; public function TextInput() { //转换成h5项目后获取浏览器的宽度 //[IF-JS]sourceWi...
来源: Laya_社区 发布时间: 20151225
...zation.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr...
来源: Laya_社区 发布时间: 20170327
...TextureCubeLtcLoaded=function(loader,ltcData){ if (loader._class.destroyed){ loader.endLoad(); }else { var ltcBasePath=URL.getPath(loader.url); var urls=[ Laya3D.fo...
来源: Laya_社区 发布时间: 20180508
...splay.Sprite; import laya.events.Event; import laya.renders.Render; public class MoveTest { public function MoveTest() { Laya.init(600,600); var sp:Sprite = new Sprite(); sp.autoSize=true; sp.graphics.drawRect(0,0,100,100,"#ff0000"); sp.on(Event.CLICK,this,onClick); Laya.stage.addChild(sp); } privat...
来源: Laya_社区 发布时间: 20171226
...数据源 必须要在代码中给List组件设置数据源。 const { regClass, property } = Laya; @regClass() export class Script extends Laya.Script { @property({ type: Laya.List }) list: Laya.List constructor() { super(); } // 组件被启用后执行,例如节点被添加到舞台后 onEnable...
来源: Laya3.0_文档 发布时间: 20240910
...laya.display.Stage; import laya.display.Text; import laya.ui.Image; public class LayaSample { public function LayaSample() { //初始化引擎 Laya.init(1136, 640); Laya.stage.bgColor = "#235615"; //设置适配模式 Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; La...
来源: Laya_社区 发布时间: 20170228
API DocumentationAll Packages | All Classes | Index | Frames No Frames PBRSpecularMaterialProperties | Methods | Constants Packagelaya.d3.core.materialClasspublic class PBRSpecularMaterialInheritancePBRSpecularMaterial BaseMaterial laya.resource.Resource PBRSpecularMaterial 类用于实现...
来源: Laya2.0_api 发布时间: 20190513