大约有 672 项符合查询结果, 库内数据总量为 30,782 项。 (搜索耗时: 0.0075 秒)
Laya3.0_api(470) Laya2.0_api(71) Laya3.0_文档(59) laya_api(58) Laya_社区(8) Laya_示例(2) Laya2.0_文档(2) Laya2.0_示例(2)
...功能。我们写个简单的例子来看下用法: class LayaSample { constructor() { //创建HttpRequest对象 let http: Laya.HttpRequest = new Laya.HttpRequest(); //设置超时时间 http.http.timeout = 10000; //发送了一个简单的请求 http.send("resources/data.txt", "", "get", "text")...
来源: Laya3.0_文档 发布时间: 20241014
...der see laya.ui.VSlider Hierarchy UIComponent Slider HSlider VSlider Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize changeHandler hitTestPrior isVertical mouseThrough name showLabel tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInH...
来源: Laya3.0_api 发布时间: 20231115
...ntClip.value = "a1326";//显示"a1326"文字 Hierarchy Clip FontClip Index Constructors constructor Properties _extra _graphics _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy align alpha anch...
来源: Laya3.0_api 发布时间: 20231115
...Tab 和 RadioGroup 的基类。 Hierarchy Box UIGroup RadioGroup Tab Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name selectHandler tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchor...
来源: Laya3.0_api 发布时间: 20231115
...入时的文本的位置有少许的偏差。 Hierarchy Text Input Index Constructors constructor Properties _extra _onPostLayout _ownGraphics _parseEscapeChars _scene _skinBaseUrl _url autoSize hitTestPrior ignoreLang mouseThrough name tag ELLIPSIS HIDDEN RightToLeft SCROLL SHRINK TYPE_DATE TYPE_DA...
来源: Laya3.0_api 发布时间: 20231115
... 用于实现3D场景。 Hierarchy Sprite Scene3D Implements ISubmit Index Constructors constructor Properties _ShadowMapupdateFrequency _extra _ownGraphics _reflectionsIblSamples _reflectionsResolution _reflectionsSource _scene _sceneUniformData _skinBaseUrl _sundir _url autoSize currentCreationLay...
来源: Laya3.0_api 发布时间: 20231115
...eInfo.layerindex = layerindex; this.playStateInfo.playState = playstate; } constructor() { super(); } /** * 动画状态开始时执行。 */ onStateEnter(): void { console.log("动画开始播放了"); } /** * 动画状态运行中 * @param normalizeTime 0-1动画播放状态 */ onStateUpdate(norma...
来源: Laya3.0_文档 发布时间: 20241014
...: number = 20 public curpos: Laya.Vector3; private delatpos: Laya.Vector3; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 * 此方法为虚方法,使用时重写覆盖即可 */ onAwake(): void { this.curpos = new...
来源: Laya3.0_文档 发布时间: 20241014
...te reqId:number = 0; private _package:IPackage; private _message:IMessage; constructor(){ if(!console.group){ console.group = console.log; console.groupEnd = function(){console.log("----")}; console.info = console.log; console.warn = console.log; console.error = console.log; } this._message = new Me...
来源: Laya_社区 发布时间: 20180119
...收机制 */ @regClass() export default class Bullet extends Laya.Script { constructor() { super(); } onEnable(): void { //设置初始速度 let rig: Laya.RigidBody = this.owner.getComponent(Laya.RigidBody); rig.setVelocity({ x: 0, y: -10 }); } onTriggerEnter(other: any, self: any, contact: any): v...
来源: Laya3.0_文档 发布时间: 20241014