大约有 417 项符合查询结果, 库内数据总量为 30,936 项。 (搜索耗时: 0.0038 秒)
Laya3.0_api(292) Laya3.0_文档(51) Laya2.0_api(35) laya_api(27) Laya_社区(8) Laya2.0_文档(2) Laya2.0_示例(1) Laya_示例(1)
...取旋转方位信息: class Gyroscope_Sample { private info: Laya.Text; constructor() { Laya.init(550, 400); this.info = new Laya.Text(); this.info.fontSize = 50; this.info.color = "#FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height); Laya.stage.addChild(this.info); Laya.Gyroscope.insta...
来源: Laya3.0_文档 发布时间: 20240910
...ture VideoTexture 多媒体纹理 Hierarchy BaseTexture VideoTexture Index Constructors constructor Properties _id _isLoaded _needUpdate destroyedImmediately element lock name url uuid DEBUG Accessors anisoLevel baseMipmapLevel buffered compareMode cpuMemory currentSrc currentTime defaultTexture des...
来源: Laya3.0_api 发布时间: 20231115
... Hierarchy Node Sprite3D RenderableSprite3D BaseCamera LightSprite Index Constructors constructor Properties _extra _scene _url name tag WORLDINVERTFRONT Accessors active activeInHierarchy components destroyed displayedInStage hideFlags id is3D layer numChildren parent scene timer transform url Meth...
来源: Laya3.0_api 发布时间: 20231115
... Laya.Sprite3D; @property( { type : Laya.Label } ) public lab: Laya.Label; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.lab.pos(Laya.stage.width >> 1, Laya.stage.height >> 1)...
来源: Laya3.0_文档 发布时间: 20240910
...rikenParticleSystem ShurikenParticleInstanceSystem Implements IClone Index Constructors constructor Properties _geometryElementOBj autoRandomSeed dragConstant dragSpeedConstantMax dragSpeedConstantMin dragType duration gravityModifier isPerformanceMode looping playOnAwake prewarm randomSeed randomiz...
来源: Laya3.0_api 发布时间: 20231115
...I_ProgressBar extends Laya.Script { private progressBar: Laya.ProgressBar; constructor() { super(); } onAwake(): void { // 加载进度条资源,图片资源来自“引擎API使用示例” Laya.loader.load(["resources/res/ui/progressBar.png", "resources/res/ui/progressBar$bar.png"]).then(() =>...
来源: Laya3.0_文档 发布时间: 20240910
...opertypublic var x:NumberX轴坐标yproperty public var y:NumberY轴坐标Constructor DetailVector2()Constructorpublic function Vector2(x:Number = 0, y:Number = 0) 创建一个 Vector2 实例。 Parameters x:Number (default = 0) — X轴坐标。 y:Number (default = 0) — Y轴坐标。 Method De...
来源: Laya2.0_api 发布时间: 20190513
...roperty } = Laya; @regClass() export class NewScript extends Laya.Script { constructor() { super(); } onMouseClick(evt: Laya.Event): void { // 尝试获取当前位置 Laya.Geolocation.getCurrentPosition( Laya.Handler.create(this, this.onSuccess), Laya.Handler.create(this, this.onError) ); console.l...
来源: Laya3.0_文档 发布时间: 20240910
...y,意味着getCurentPosition()直到位置可用时才会返回信息。 Constructor DetailGeolocation()Constructorpublic function Geolocation()Method DetailclearWatch()method public static function clearWatch(id:int):void 移除watchPosition安装的指定处理器。 Parameters id:intgetCurrentP...
来源: laya_api 发布时间: 20170929
...y,意味着getCurentPosition()直到位置可用时才会返回信息。 Constructor DetailGeolocation()Constructorpublic function Geolocation()Method DetailclearWatch()method public static function clearWatch(id:int):void 移除watchPosition安装的指定处理器。 Parameters id:intgetCurrentP...
来源: Laya2.0_api 发布时间: 20190513