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

大约有 129 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0051 秒)

1. 有没有浮雕滤镜? [ 100%]

...只有以下的滤镜和混合模式 /**@private 模糊滤镜。*/ public static const BLUR:int = 0x10; /**@private 颜色滤镜。*/ public static const COLOR:int = 0x20; /**@private 发光滤镜。*/ public static const GLOW:int = 0x08; public static const NAMES:Array = /*[STATIC SAFE]*/["normal",...

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

2. 2.0 Beta3版本中,runtime脚本的的问题 [ 96%]

...geRunTime" /* * 游戏初始化配置; */ export default class GameConfig{ static width:number=640; static height:number=1136; static scaleMode:string="fixedwidth"; static screenMode:string="none"; static alignV:string="top"; static alignH:string="left"; static startScene:any="mainscene.scene"; stat...

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

3. 分享个资源加载的方法,类似白鹭的加载方式 [ 90%]

...还请见谅 class RES extends Laya.EventDispatcher{ // 资源组 public static groups: any; // 资源 public static resources: any; // 完成加载资源配置文件 public static ONLOADEDRESJSON: string = "onLoadedResJson"; // 资源配置文件加载出错 public static ONLOADERRORRESJSON: string...

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

4. TextInput有禁用中文输入法的功能吗? [ 89%]

...关的链接 提交 2 个回复 Laya_Aaron 赞同来自:         static public const TYPE_TEXT:String = "text";         /** password 类型用于密码域输入。*/         static public const TYPE_PASSWORD:String = "password";         /** email 类型用于应该包...

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

5. 请问 Laya.static在2.0取消了吗 [ 89%]

请问 Laya.static在2.0取消了吗 2019-02-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 faith_leaf 赞同来自:   只是文档资料没有显示   实际仍然可以使用. 2019-02-17 0 0 分享 微博 ...

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

6. laya 1.0 源码中 RunDriver.as里measureText的问题 [ 89%]

...yaAir引擎 laya 1.0 源码中 RunDriver.as里measureText的问题 private static var hanzi:RegExp = new RegExp("^[\u4E00-\u9FA5]$"); private static var fontMap:Array = ; public static var measureText:Function = function(txt:String, font:String):* { var isChinese:Boolean = hanzi.test(txt); if (isChi...

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

7. 【分享】Laya As3 Tween类的loop实现和3d简单缓动实现 [ 88%]

...有所帮助。 实现功能 1 增加loop类型: loop , pingpongpublic static const LoopType_None:String = "none"; public static const LoopType_Pingpong:String = "pingpong"; public static const LoopType_Loop:String = "loop"; 2 增加简单3d缓动: Position,Scale,Rotation,Color   demo如下:  ...

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

8. 2个刚体,其中一个设置速度setVelocity使其移动,另一个为static静态(模拟墙壁),结果移动直接穿过去了,没有物理效果阻止移动 [ 88%]

...2个刚体,其中一个设置速度setVelocity使其移动,另一个为static静态(模拟墙壁),结果移动直接穿过去了,没有物理效果阻止移动 2个刚体,其中一个设置速度setVelocity使其移动,另一个为static静态(模拟墙壁),结果移动直接...

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

9. Laya2自动同步cullingMask方案以及灯光裁剪补丁 [ 87%]

...持与摄相机相同。 **/ export default class ExtCullingMask { public static enableLightCullingMask(scene: Laya.Scene3D) { //var proto = Laya.Scene3D.prototype as any; (scene as any).lightCullingMask = function (scene, camera) { //灯光处理开始 麒麟子添加 var allLights = []; allLights ...

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

10. laya2.0 截图功能分享,直接截取屏幕上所有对象 [ 84%]

...有看到的东西全部截取下载,测试小游戏正常可用 private static _sp: Laya.Sprite = null; private static tempTexture2D: Laya.Texture2D; private static tempTexture: Laya.Texture; /**截图 */ public static drawScreenshot(width, height, x, y) { if (!SwitchHelper.screenDraw) { return n...

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