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

大约有 1,763 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0056 秒)

271. Sprite-容器 [ 76%]

...ya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_Container { // 该容器用于装载4张猩猩图片 private apesCtn: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alig...

来源: Laya_示例 发布时间: 20251130

272. laya.device.motion.AccelerationInfo_API3.0 [ 76%]

...ported Menu Globals "laya/device/motion/AccelerationInfo" AccelerationInfo Class AccelerationInfo 加速度x/y/z的单位均为m/s²。 在硬件(陀螺仪)不支持的情况下,alpha、beta和gamma值为null。 author Survivor Hierarchy AccelerationInfo Index Constructors constructor Properti...

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

273. Sprite3D-Sprite3D克隆 [ 76%]

...te3D.instantiate(layaMonkey, null, false, new Laya.Vector3(-0.6, 0, 0))); }class Sprite3DClone { private scene: Laya.Scene; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; this.scene = new Laya.Scene(); Laya.stage...

来源: Laya_示例 发布时间: 20251130

274. laya.d3.graphics.VertexElement_API3.0 [ 76%]

... Only exported Menu Globals "laya/d3/graphics/VertexElement" VertexElement Class VertexElement VertexElement 类用于创建顶点结构分配。 Hierarchy VertexElement Index Constructors constructor Accessors elementFormat elementUsage offset Constructors constructor new VertexElement(offset: numb...

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

275. 如何启用摇一摇 [ 76%]

...ontroller { import model.Model; /** * ... * @author 偷心枫贼 */ public class Controller_yao1yao { public function Controller_yao1yao(model:Model) { __JS__('_model = model'); __JS__('var SHAKE_THRESHOLD = 100'); __JS__('var last_update = 0'); __JS__('var x = y = z = last_x = last_y = last_z = 0;'...

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

276. 加载-错误处理和进度 [ 76%]

...种开发语言、LayaAirIDE让项目开发更高效。let numLoaded = 0; class Loader_ProgressAndErrorHandle { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Event = Laya.Event, Loader = Laya.Loader; // 不支持WebGL...

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

277. laya.net.BatchProgress_API3.0 [ 76%]

...xternals Only exported Menu Globals "laya/net/BatchProgress" BatchProgress Class BatchProgress Hierarchy BatchProgress Implements IBatchProgress Index Constructors constructor Accessors itemCount Methods createCallback reset update Constructors constructor new BatchProgress(callback: ProgressCallbac...

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

278. laya.d3.graphics.batch.RenderElementBatch_API3.0 [ 76%]

...enu Globals "laya/d3/graphics/Batch/RenderElementBatch" RenderElementBatch Class RenderElementBatch Hierarchy RenderElementBatch Index Constructors constructor Properties instance Methods batch recoverData Constructors constructor new RenderElementBatch(): RenderElementBatch Defined in laya/d3/graph...

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

279. laya.spine.SpineSkeletonRenderer_API3.0 [ 76%]

...rted Menu Globals "laya/spine/SpineSkeletonRenderer" SpineSkeletonRenderer Class SpineSkeletonRenderer Hierarchy SpineSkeletonRenderer Index Constructors constructor Properties premultipliedAlpha templet vertexEffect Methods draw Constructors constructor new SpineSkeletonRenderer(templet: SpineTempl...

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

280. laya自定义脚本如何克隆 [ 76%]

laya自定义脚本如何克隆 import 脚本之后我用  let  class_a = new Class(); 的方式不可行 ,N个物体直接挂载Class,,他只有一个被执行了,我只能挂载到父物体上,然后克隆父物体 ,这个脚本就被“专属”了 , 这就出现问题 ,laya里...

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