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

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

21. 如何实现类似unity3dFixedUpdate的每秒固定的帧 [ 68%]

...置         /**全速模式,以60的帧率运行。*/         public static const FRAME_FAST:String = "fast";         /**慢速模式,以30的帧率运行。*/         public static const FRAME_SLOW:String = "slow";         /**自动模式,以30的帧率运行,但...

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

22. 输入设备-贪吃蛇(重力感应) [ 68%]

...h + this.height, this.height, "#FF7F50"); } // 获取关节另一头位置 public getPinPosition():Point { var radian:number = this.rotation * Math.PI / 180; var tx:number = this.x + Math.cos(radian) * this.width; var ty:number = this.y + Math.sin(radian) * this.width; return new Point(tx, ty); } } ...

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

23. 输入设备-贪吃蛇(重力感应) [ 67%]

...h + this.height, this.height, "#FF7F50"); } // 获取关节另一头位置 public getPinPosition():Point { var radian:number = this.rotation * Math.PI / 180; var tx:number = this.x + Math.cos(radian) * this.width; var ty:number = this.y + Math.sin(radian) * this.width; return new Point(tx, ty); } } ...

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

24. 3D动画倒播 [ 66%]

...: 13146870820 using UnityEngine;   using System.Collections;      public class DJH_Animation : MonoBehaviour {       public GameObject AnimationObj;//带有动画的对象              // Use this for initialization       void Start () {         ...

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

25. 扇形遮罩画不全画了一个很奇怪的形状但是矩形的就没问题。显示效果如下:版本号1.7.10 [ 65%]

...    import laya.maths.Size;     import laya.ui.Image;          public class ProcessTimer extends Sprite     {         public var img:Image;         public var maskSp:Sprite;         public var percent:Number;         public var type:String = "PROGRESS_TIMER_TYP...

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

26. TS setExternalLinkEx問題 [ 65%]

... Event = Laya.Event; import Browser = Laya.Browser; export class GameMain{ public ctx = document.createElement('canvas').getContext('2d'); constructor() { Laya.init(900,630, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHO...

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

27. laya.utils.Log_API3.0 [ 65%]

...ring search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/utils/Log" Log Class Log Log 类用于在界面内显示日志记录信息。 注意:在加速器内不可使用 Hierarchy Log Index Propertie...

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

28. 同步龙骨插槽动画方案 [ 63%]

...ort class MSketon {      private mFactory: Laya.Templet;     public mArmature: Laya.Skeleton     private _handler: Laya.Handler;      constructor(url: string, handler: Laya.Handler, aniMode: number = 0) {         this._handler = handler;         t...

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

29. Laya.Tween.to [ 62%]

...eturn 指定时间的插补属性的值。          */         public static function cubicOut(t:Number, b:Number, c:Number, d:Number):Number {             return c * ((t = t / d - 1) * t * t + 1) + b;         } 你可以直接向这个方法里传值 2018-05-03 1 0 分享...

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

30. 打包后启动游戏后报错 [ 61%]

...代码在浏览器里都可以正常运行,打包后才会出现问题 public function send(type:String,url:String,callbackName:String):void { this.type = type; //发送请求 var script:* = Browser.createElement("script"); script.id = "serverlist"; Browser.document.head.appendChild(script); scrip...

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