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

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

61. 在UI类里调用启动类的静态函数失败了 [ 74%]

...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

62. 对游戏各种控件字体样式使用“白鹭style”样式表 [ 74%]

...下午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

63. 请教下, 自己写了个渐变色shader, 但是效果始终不对。麻烦大神们看看代码哪里有问题 [ 74%]

...留言。 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

64. [LayaAir3]插件开发,我需要选择文件夹,如何可视化选择文件夹 [ 73%]

...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

65. Laya 绑定显示内容到骨骼动画 [ 73%]

...骼在局部空间的坐标点 * @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

66. ts加密md5码封装 [ 72%]

...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

67. 请问Laya如何使用第三方物理库 [ 72%]

...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

68. 本地双击html如何打开laya项目? [ 72%]

...安装,这样只需要访问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

69. 请大家帮助优化一下这个抛物线的代码 [ 72%]

...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

70. 富文本过程我遇到的问题以及解决方法(超链接换行以及无法接收超链接鼠标事件以及br或者 标签会崩溃报错的问题) [ 71%]

... 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