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

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

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

...无法使用,其他地方使用会报错 module bili{ export class Test{ constructor(){ console.log("Test"); } } } 2018-09-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 7 个回复 牛唠叨 赞同来自: Chiuan 其实...

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

1122. 鼠标交互-自定义事件 [ 44%]

...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.ALIGN_CENTER; Laya.stage.scaleMode = "sh...

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

1123. Sprite-轴心点 [ 44%]

...bGL; export class Sprite_Pivot { private sp1: Sprite; private sp2: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "sh...

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

1124. 骨骼动画-藤蔓 [ 44%]

...re:Skeleton; private mCurrSkinIndex:number = 0; private mFactory2:Templet; constructor() { Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.bgColor = "#ffffff"; Stat.show(); this.startFun(); } public startFun():void { this.mAniPath = "../../res/spine/spineRes5/vine.sk"; this.mFactory = new...

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

1125. laya.d3.core.particleShuriKen.ShurikenParticleRenderer [ 44%]

...var stretchedBillboardSpeedScale:Number拉伸广告牌模式速度缩放。Constructor DetailShurikenParticleRenderer()Constructorpublic function ShurikenParticleRenderer(owner:ShuriKenParticle3D) 创建一个 ShurikenParticleRender 实例。 Parameters owner:ShuriKenParticle3DMethod Detail_calculat...

来源: Laya2.0_api 发布时间: 20190513

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

...示的文本颜色(输入框有这个玩意儿) */ promptColor:string; constructor() { } }这些字段就是Label控件类设置样式的相关属性。这里我只选取了我需要的。还有那些align等属性,可以根据自己需要定义。这里只是抛砖引玉……2.设计一个ex...

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

1127. 骨骼动画-橡胶人 [ 44%]

...re:Skeleton; private mCurrSkinIndex:number = 0; private mFactory2:Templet; constructor() { Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.bgColor = "#ffffff"; Stat.show(); this.startFun(); } public startFun():void { this.mAniPath = "../../res/spine/spineRes4/stretchyman.sk"; this.mFactor...

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

1128. 输入设备-摇一摇 [ 44%]

...te picH:number = 484; private console:Text; private shakeCount:number = 0; constructor() { Laya.init(this.picW, Browser.height * this.picW / Browser.width); Laya.stage.scaleMode = Stage.SCALE_SHOWALL; this.showShakePic(); this.showConsoleText(); this.startShake(); } private showShakePic():void { var...

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

1129. 无法触发浏览器文件上传框 [ 44%]

...in { private btn: Laya.Button; private skin: string = 'images/button.png'; constructor() { Laya.init(200, 300); Laya.loader.load(this.skin, Laya.Handler.create(this, () => { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Event.CLICK, this, this.onClick); })); } /** * 创建btn */ private ...

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

1130. 其他引擎的Demo-Example_05 [ 44%]

... tpoint2:Array = []; private tpoint3:Array = []; private balls:Array = []; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Stat.show(); Laya.stage.scaleMode = Stage.SCALE_FULL; this.setup(); } private setup():void { Laya.stage.on(Event.RESIZ...

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