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

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

1041. laya.d3.core.material.BaseMaterial [ 62%]

...l  cloneTo(destObject:*):void 克隆。 BaseMaterial  onAsynLoaded(url:String, data:*, params:Array):void[override] private BaseMaterial  setShaderName(name:String):void 设置使用Shader名字。 BaseMaterialProtected Methods  MethodDefined By  _addDisablePublicShaderDefine(value:int):voi...

来源: laya_api 发布时间: 20170929

1042. 分享:销毁龙骨动画! [ 61%]

....Stat; import laya.webgl.WebGL; public class ASDemo { private var mAniPath:String; private var mFactory:Templet; private var mCurrIndex:int = 0; private var mArmature:Skeleton; public function ASDemo() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Stat.s...

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

1043. [LayaAir3]Pool对象池获取继承对象时会返回基类对象 [ 61%]

... /** * 返回类的唯一标识 */ private static _getClassSign(cla: any): string { var className = cla["__className"] || cla["_$gid"]; if (!className) { cla["_$gid"] = className = Pool._CLSID + ""; Pool._CLSID++; } return className; } cla["__className"] || cla["_$gid"]这种写法会查找父类的...

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

1044. 计时器-间隔循环 [ 61%]

...frameLoop(2, this, this.animateFrameRateBased); } private createText(text: string, x: number, y: number): Text { var t: Text = new Text(); t.text = text; t.fontSize = 30; t.color = "white"; t.bold = true; t.pivot(t.width / 2, t.height / 2); t.pos(x, y); Laya.stage.addChild(t); return t; } private an...

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

1045. 关于laya图片资源缓存的问题 增量更新文件缓存 [ 61%]

...ader.IMAGE }] /** 添加文件hash */ export const setStaticPrefix = (url:string) :string => { if (staticHash[`images/${url}`]) { return staticHash[`images/${url}`] } return `images/${url}` }然后资源导出的时候使用gulp生成文件hash 这样增量更新方式比整个替换文件夹要...

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

1046. 骨骼动画-多纹理 [ 61%]

...t; import WebGL = Laya.WebGL; export class MultiTexture { private mAniPath:string; private mStartX:number = 400; private mStartY:number = 500; private mFactory:Templet; private mActionIndex:number = 0; private mCurrIndex:number = 0; private mArmature:Skeleton; private mCurrSkinIndex:number = 0; cons...

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

1047. module写法的模块无法使用,其他地方使用会报错 [ 61%]

...------------------------ module AM{ export class AC { public static myname:string = "I'm AC!"; } } export default AM; b.ts ---------------------------- module AM{ export class BC { public static myname:string = "I'm BC!"; } } export default AM; c.ts -------------------------- import AM from './a'; /...

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

1048. 设置滤镜(TypeScript-LayaAir基础篇(TS)-位图) [ 61%]

...a.Handler; import WebGL = Laya.WebGL; export class Main { private ApePath: string = "../../res/apes/monkey2.png"; private apeTexture: Texture; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE...

来源: Laya2.0_文档 发布时间: 20210715

1049. 鼠标交互-自定义事件 [ 61%]

...= Laya.WebGL; export class Interaction_CustomEvent { public static ROTATE: string = "rotate"; private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.A...

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

1050. 人物行走图动画 [ 61%]

...回图集json信息(并创建图集内小图Texture)。      load(url:String, type:String = null, cache:Boolean = true):void 加载资源。 Laya.loader.load(AniConfPath, Handler.create(this, createAnimation), null, Loader.ATLAS);   这里的load只有三个参数,而事实上用到4个,不...

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