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

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

831. 背景音乐播放完毕要等很久才开始循环播放,版本1.7.17 [ 50%]

...进行控制,以及获取声音信息。          */         public static function playMusic(url:String, loops:int = 0, complete:Handler = null, startTime:Number = 0):SoundChannel { 你的参数传入是否正确那? 或者能否发一下你出问题部分的代码或者小demo那...

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

832. ts项目,我在程序主入口声明了公共静态类,下面new出了一个对象,把他添加到舞台中出错。 [ 50%]

...态类,下面new出了一个对象,把他添加到舞台中出错。 public static GameStart:GameStart; GameMain.GameStart=new GameStart(); Laya.stage.addChild(GameMain.GameStart); 报错:file: 'file:///e%3A/LAYABOX/CaiCi/src/GameMain.ts' severity: '错误' message: 'Argument of type 'GameStar...

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

833. Tween.to 中 用Ease.circIn 做 加速运动 能设置初试速度吗 ?默认是 0 能改成别的吗?如果能?怎么改? [ 50%]

...运动的持续时间。 * @return 指定时间的插补属性的值。 */ public static function circIn(t:Number, b:Number, c:Number, d:Number):Number { return -c * (Math.sqrt(1 - (t /= d) * t) - 1) b; }   2018-04-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复...

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

834. laya.device.Shake_API3.0 [ 50%]

...ring search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/device/Shake" Shake Class Shake Shake只能在支持此操作的设备上有效。 Hierarchy EventDispatcher Shake Index Constructors constructo...

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

835. 【Native BUG】Native下对根结点设置filter,无法更新到每个子节点,web是ok的 [ 50%]

...加filter的时候仍然无效。只有手动设置color才能生效。   public static setGray(node: Laya.Node, set: boolean) {             for (var i = 0; i < node.numChildren; i++) {                 let sprite = node.getChildAt(i) as Laya.Sprite;                 if (spri...

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

836. laya.physics.RigidBody_API3.0 [ 50%]

...ring search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/physics/RigidBody" RigidBody Class RigidBody 2D刚体,显示对象通过RigidBody和物理世界进行绑定,保持物理和显示对象之...

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

837. 分享一个Shader版的CoolDown实现 [ 50%]

...  * 当前着色器的一个实例对象。          */         public static shader: coolDownShader = new coolDownShader();         constructor() {             var vs: string = " \             attribute vec2 position; \             attribute vec2 texcoord; \      ...

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

838. RenderTarget2D的create方法 [ 50%]

...请: 与内容相关的链接 提交 1 个回复 w1114367261 赞同来自: public static function create(w:int, h:int, surfaceFormat:int = WebGLContext.RGBA, surfaceType:int = WebGLContext.UNSIGNED_BYTE, depthStencilFormat:int = WebGLContext.DEPTH_STENCIL, mipMap:Boolean = false, repeat:Boolean = fa...

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

839. laya.ui.Component [ 50%]

...mes No Frames ComponentProperties | Methods | Events Packagelaya.uiClasspublic class ComponentInheritanceComponent Sprite Node EventDispatcher ObjectImplements IComponentSubclasses Box, Button, Clip, ColorPicker, ComboBox, Image, Label, ProgressBar, ScrollBar, Slider, TipManager Component 是ui...

来源: laya_api 发布时间: 20170929

840. laya.d3.shader.ShaderData_API3.0 [ 50%]

...Preparing search index... The search index is not available ts Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/shader/ShaderData" ShaderData Class ShaderData 着色器数据类。 Hierarchy ShaderData Implements IClone Index Methods addDefine clearDefi...

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