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

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

941. 要做一个方形倒计时,请问该怎么实现,不知道该怎么做 [ 64%]

...private var endTime:int; private var cdTime:int; public var isCd:Boolean = false; public function CdSprite() { super(); this.scrollRect = rect; this.alpha = 0.85; } public function setSize(bian:int):void{ r = bian / Math.SQRT2; rect = new Rectangle(0,0,bian,bian); this.scrollRect = rect; pos = bian ...

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

942. 输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 64%]

...中,相同样式字体字号的字符全局共享一份缓存,默认为false,如果字体需要频繁修改,可以勾选此项以提升性能 文本颜色 color 文本的颜色,可以直接输入颜色值,例如:#ffffff,也可以点击输入条右侧的拾色器选取颜色 样式 st...

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

943. 灯光-聚光 [ 64%]

...(0, 0.7, 1.3)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); //聚光灯 var spotLight = scene.addChild(new Laya.SpotLight()); spotLight.color = new Laya.Vector3(1, 1, 0); spotLight.transform.position = new Laya.Vector3(0.0, 1.2, 0.0); spo...

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

944. laya.d3.core.MeshSprite3D [ 64%]

...Sprite3D off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String = null):EventDispatcher 从 EventDispatcher 对象中删除指定事件类型的所有侦听器。 EventDispatcher on...

来源: laya_api 发布时间: 20170929

945. 解决游戏最小化退到后台后浏览器会强制1秒执行一次ILaya.stage._loop() [ 64%]

...&& ms < Infinity              if (valid === false) {                 if (typeof ms !== 'number' && typeof ms !== 'bigint') {                     throw TypeError('sleep: ms must be a number')          ...

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

946. Dialog 第一次打开总是出现在窗口右下角,这是为啥,再打开就正常剧中了? [ 64%]

...ng","scaleY":1,"scaleX":1}, "nodeParent":2, "label":"Image", "isDirectory":false, "isAniNode":true, "hasChild":false, "compId":3, "child":[ ] }], "animations":[ { "nodes":[ ], "name":"ani1", "id":1, "frameRate":24, "action":0 }] } 附件 : --> 2020-04-17 添加评论 免费帖 --> 分享 微博 QZON...

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

947. laya.physics.joint.PrismaticJoint [ 64%]

...,比如1,0是沿X轴向右PrismaticJoint  collideConnected : Boolean = false[首次设置有效]两个刚体是否可以发生碰撞,默认为falsePrismaticJoint destroyed : Boolean[read-only] 获取是否已经销毁 。 Component enabled : Boolean 获取是否启用组件。 Component  e...

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

948. js进度,进度,js场景进度效果 [ 63%]

...this, this.onAssetLoaded), Laya.Handler.create(this, this.onLoading, null, false), Laya.Loader.ATLAS); }; //加载完成后 p.onAssetLoaded = function() {}; //加载进度 p.onLoading = function(num) { //先添加进度组件UI if (!this.Progress) { this.Progress = new Progress(); this.i = 0; } this...

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

949. laya.ui.TextInput_API3.0 [ 63%]

...s Defined in laya/ui/TextInput.ts:118 _ownGraphics _ownGraphics: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:641 _skinBaseUrl _skinBaseUrl: string Inherited from Text._skinBaseUr...

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

950. 分享一个Shader版的CoolDown实现 [ 63%]

...序文件里定义的属性的相关描述:[属性长度, 属性类型,false, 属性起始位置索引 * CONST3D2D.BYTES_PE];             this.position = [2, WebGLContext.FLOAT, false, len, 0];             this.texcoord = [2, WebGLContext.FLOAT, false, len, 2 * CONST3D2D.BYTES_PE];   ...

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