大约有 192 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0050 秒)
...create(this, this.onLoaded), Laya.Handler.create(this, this.onLoading)); } static aaa(): void { } private onLoaded(): void { var info = new view.GameInfo(); info.zOrder = 99;//置最顶,这句话不写图层看不见 // info.init(); Laya.stage.addChild(info); } private onLoading(): void { var bj = n...
来源: Laya_社区 发布时间: 20180507
...下午3:07 * @Desc: 字体样式管理器 **/ class StyleManager { private static _instance: StyleManager; private _styleMap: Object;//字体样式映射 static get instance(): StyleManager { if (!this._instance) { this._instance = new StyleManager(); } return this._instance; } constructor() { } /**...
来源: Laya_社区 发布时间: 20171226
...留言。 2018-03-16 0 0 分享 微博 QZONE 微信 Ace1024 赞同来自: static vertexShader = ` uniform vec3 u_colorStart; uniform vec3 u_colorEnd; varying vec3 v_color; void main() { v_color = mix(u_colorStart, u_colorEnd, uv.x); gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1...
来源: Laya_社区 发布时间: 20180316
...as"; this.setSize(450, 180); } } class SplitAtlasSetting { @IEditor.onLoad static start() { Editor.typeRegistry.addTypes([ { name: "SplitAtlasSetting", catalogBarStyle: "hidden", properties: [ { name: "help", caption: "提示", inspector: "Info", type: "string", default: "输入文件夹中需要有...
来源: Laya_社区 发布时间: 20250702
...骼在局部空间的坐标点 * @param skeleton * @param BoneName */ static getBoneLocalPoint(skeleton:Laya.Skeleton,BoneName:string,result:Laya.Point=null):Laya.Point{ if(result==null){ result=new Laya.Point(); } result.x=result.y=0; let bone:laya.ani.bone.Bone=skeleton.templet.mRootBone.fi...
来源: Laya_社区 发布时间: 20190805
...str) //len:32 //e10adc3949ba59abbe56e057f20f883emd5.ts class Md5 { private static _inst:Md5; public static get Instance():Md5 { return this._inst ||(this._inst = new Md5()); } public get_md5(str:string):string { return this.md5(str); } split(target: string | any[], step: number, markString: boolean ...
来源: Laya_社区 发布时间: 20190321
...N.Body包装成组件 export class CannonRigidbody extends Laya.Script3D { static map: { [key: number]: Laya.Sprite3D } = {}; body: CANNON.Body; t: Laya.Transform3D; public onCollisionCB: (s: Laya.Sprite3D) => void; public ignoreRotate: boolean = false; ...OnAwake里面创建CANNON.Body, OnEnable...
来源: Laya_社区 发布时间: 20200217
...安装,这样只需要访问apk就可以解决了,安装apk: public static boolean install(Context context, String filePath) { Intent i = new Intent(Intent. ACTION_VIEW); File file = new File(filePath); if (file != null && file.length() > 0 && file.exists() && file.i...
来源: Laya_社区 发布时间: 20160104
...schina.net/u/659068/blog/1564002 class Ball extends Laya.Sprite{ private static cached:boolean = false; private body:Laya.Sprite; constructor(){ super(); this.init(); } public init():void{ if(!Ball.cached){ Ball.cached = true; this.body = new Laya.Sprite(); this.body.loadImage("war/ball.png"); thi...
来源: Laya_社区 发布时间: 20171108
... Laya.Pool.recover("HTMLHitRect", this.reset()); } static create() { return Laya.Pool.getItemByClass("HTMLHitRect", HTMLHitRect); } } 第二步 class HTMLDivElement 构造中监听一下 this.on(Laya.Event.MOUSE_OVER, thi...
来源: Laya_社区 发布时间: 20200724