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

大约有 3,031 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0113 秒)

811. 计时器-间隔循环 [ 72%]

...ript、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。class Timer_Interval { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser...

来源: Laya2.0_示例 发布时间: 20251209

812. laya.d3.physicscannon.shape.CannonSphereColliderShape_API3.0 [ 72%]

...3/physicsCannon/shape/CannonSphereColliderShape" CannonSphereColliderShape Class CannonSphereColliderShape SphereColliderShape 类用于创建球形碰撞器。 Hierarchy CannonColliderShape CannonSphereColliderShape Implements IClone Index Constructors constructor Properties needsCustomCollisionCal...

来源: Laya3.0_api 发布时间: 20231102

813. laya.device.Shake [ 72%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames ShakeProperties | Methods Packagelaya.deviceClasspublic class ShakeInheritanceShake EventDispatcher Object Shake只能在支持此操作的设备上有效。 Public Properties PropertyDefined By  instance : Shake[stat...

来源: Laya2.0_api 发布时间: 20190513

814. 用JS原生态window.location.href跳转 [ 72%]

...isplay.Sprite; import laya.events.Event; import laya.utils.Browser; public class LayaAirTest { public function LayaAirTest() { Laya.init(550,400); var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,100,100,"#FFFF00"); Laya.stage.addChild(sp); sp.size(1000,100); sp.on(Event.CLICK,this,onClick); } p...

来源: Laya_社区 发布时间: 20161215

815. laya.d3.physics.shape.MeshColliderShape_API3.0 [ 72%]

...d Menu Globals "laya/d3/physics/shape/MeshColliderShape" MeshColliderShape Class MeshColliderShape MeshColliderShape 类用于创建网格碰撞器。 Hierarchy ColliderShape MeshColliderShape Implements IClone Index Constructors constructor Properties needsCustomCollisionCallback SHAPEORIENTATION_U...

来源: Laya3.0_api 发布时间: 20231115

816. vmLaya: MVVM for LayaAir [ 72%]

...ya 基本应用:const TEST_PAGE = 'TestPage.json'; //我们的 ViewModel class HelloViewModel { //每隔 500ms 自增的一个数字序列   hello$ = $.timer(0, 500); } //一个 View @createView(TEST_PAGE) class HelloView extends VmViewBase<HelloViewModel> { //绑定 viewModel 的 hello$ ...

来源: Laya_社区 发布时间: 20180128

817. laya.d3.resource.models.SkyBox_API3.0 [ 72%]

...ternals Only exported Menu Globals "laya/d3/resource/models/SkyBox" SkyBox Class SkyBox SkyBox 类用于创建天空盒。 Hierarchy GeometryElement SkyBox Index Constructors constructor Properties _geometryElementOBj instance Accessors bufferState destroyed drawType indexFormat instanceCount mode M...

来源: Laya3.0_api 发布时间: 20231115

818. laya.d3.graphics.VertexPositionNormalColorSkin [ 72%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames VertexPositionNormalColorSkinProperties | Methods Packagelaya.d3.graphicsClasspublic class VertexPositionNormalColorSkinInheritanceVertexPositionNormalColorSkin ObjectImplements IVertex VertexPositionNormalColorSkin 类...

来源: laya_api 发布时间: 20170929

819. laya.maths.Point [ 72%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames PointProperties | Methods | Constants Packagelaya.mathsClasspublic class PointInheritancePoint Object Point 对象表示二维坐标系统中的某个位置,其中 x 表示水平轴,y 表示垂直轴。 Public Prope...

来源: laya_api 发布时间: 20170929

820. laya.media.Sound [ 72%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames SoundProperties | Methods Packagelaya.mediaClasspublic class SoundInheritanceSound EventDispatcher Object Sound 类是用来播放控制声音的类。 Public Properties PropertyDefined By  duration : Number[read-only...

来源: laya_api 发布时间: 20170929