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

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

231. 陀螺仪与加速计 · LayaAir3.3 · 引擎文档 · LAYABOX [ 57%]

...取旋转方位信息: 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

232. laya.media.VideoTexture_API3.0 [ 57%]

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

233. laya.d3.core.Sprite3D_API3.0 [ 56%]

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

234. 显示文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 56%]

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

235. laya.d3.core.particleshuriken.ShurikenParticleInstanceSystem_API3.0 [ 55%]

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

236. 进度条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 54%]

...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(() =&gt...

来源: Laya3.0_文档 发布时间: 20240910

237. laya.d3.math.Vector2 [ 54%]

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

238. 获取位置信息 · LayaAir3.3 · 引擎文档 · LAYABOX [ 54%]

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

239. laya.device.geolocation.Geolocation [ 54%]

...y,意味着getCurentPosition()直到位置可用时才会返回信息。 Constructor DetailGeolocation()Constructorpublic function Geolocation()Method DetailclearWatch()method public static function clearWatch(id:int):void 移除watchPosition安装的指定处理器。 Parameters id:intgetCurrentP...

来源: laya_api 发布时间: 20170929

240. laya.device.geolocation.Geolocation [ 54%]

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