大约有 1,625 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0050 秒)
Laya_社区(663) Laya3.0_api(364) Laya2.0_api(194) laya_api(158) Laya2.0_文档(80) Laya_示例(58) Laya3.0_文档(54) Laya2.0_示例(54)
...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_示例 发布时间: 20241126
...ader.IMAGE }] /** 添加文件hash */ export const setStaticPrefix = (url:string) :string => { if (staticHash[`images/${url}`]) { return staticHash[`images/${url}`] } return `images/${url}` }然后资源导出的时候使用gulp生成文件hash 这样增量更新方式比整个替换文件夹要...
来源: Laya_社区 发布时间: 20180412
...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_示例 发布时间: 20241126
...------------------------ 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
...= 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_示例 发布时间: 20241126
...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
...回图集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
...ort WebGL = Laya.WebGL; export class Skeleton_SpineVine { private mAniPath:string; private mStartX:number = 200; private mStartY:number = 500; private mFactory:Templet; private mActionIndex:number = 0; private mCurrIndex:number = 0; private mArmature:Skeleton; private mCurrSkinIndex:number = 0; priv...
来源: Laya_示例 发布时间: 20241126
... > 通过引用来导入着色器代码 ```typescript var simpleShaderVS:String = __INCLUDESTR__("customShader/simpleShader.vs"); var simpleShaderFS:String = __INCLUDESTR__("customShader/simpleShader.ps"); ``` > 初始化shader ```typescript //初始化我们的自定义shader public static function...
来源: Laya2.0_文档 发布时间: 20210715
...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...
来源: Laya2.0_示例 发布时间: 20241126