大约有 1,086 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0079 秒)
Laya_社区(724) Laya3.0_api(83) Laya2.0_api(77) Laya2.0_文档(75) laya_api(71) Laya3.0_文档(45) Laya_示例(6) Laya2.0_示例(5)
... Laya.Texture = Laya.Loader.getRes("progress.png"); this.spe = new coolDownSprite(); this.spe.init(texture); //this.spe.initWithoutTexture(128, 128); this.spe.pos(300, 350); this.spe.setProgress(this.progress); Laya.stage.addChild(this.spe); ----------------------源码-------------------------- imp...
来源: Laya_社区 发布时间: 20170606
...时执行 onUpdate(): void { //让持续盒子旋转 (this.owner as Laya.Sprite).rotation++; } //开始碰撞时执行 onTriggerEnter(other: any): void { var owner: Laya.Sprite = this.owner as Laya.Sprite; if (other.label === "buttle") { //碰撞到子弹后,增加积分,播放声音特效 if (t...
来源: Laya3.0_文档 发布时间: 20251010
...s() export class LabelControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.Label } ) public lab: Laya.Label; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { th...
来源: Laya3.0_文档 发布时间: 20251010
...regClass() export class Script1 extends Laya.Script { declare owner : Laya.Sprite3D; } //TestCustomEditor.ts @IEditorEnv.customEditor(Script1) export class TestCustomEditor extends IEditorEnv.CustomEditor { declare owner: Laya.Sprite3D; onSceneGUI(): void { IEditorEnv.Handles.drawHemiSphere(this.own...
来源: Laya3.0_文档 发布时间: 20251010
... Floor.OUT_DIE = "floor_out_die"; //Floor 是一个显示对象 继承此 Sprite Laya.class(Floor, "Floor", laya.display.Sprite); var _proto = Floor.prototype; /** * type int 1->地板默认宽度 other->随机宽度 */ _proto.init = function(type){ this.maxRight = 0; //如果不开启autoSize...
来源: Laya_社区 发布时间: 20160801
...'' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp = new Laya.Sprite(); sp.loadImage(data, 0, 0, 200, 200); Laya.stage.addChild(sp); ``` 通过data来当做url传递给loadImage这个方法引擎就会帮我们加载并解码显示出来。loadImage这个方法中的参数不仅仅有...
来源: Laya2.0_文档 发布时间: 20210714
...export class TextInputControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.TextInput } ) public txtin: Laya.TextInput; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake():...
来源: Laya3.0_文档 发布时间: 20251010
...会跳转到我的个人网站。// 设定背景 var background = new Laya.Sprite(); background.loadImage("linkgame_back.jpg"); background.cacheAsBitmap = true; Laya.stage.addChild(background); // 设定标题 var title = new laya.display.Text(); title.text = g_game_title; title.font = "Arial"; titl...
来源: Laya_社区 发布时间: 20160623
... undefined LayaAir2.61 测试版 物理引擎bug 百分百 复现 new Laya.Sprite();绘制图形以后,怎么删除释放资源? 【BUG备忘录】关于Tween动画无法正常作用问题-解决办法 问题状态 最新活动: 2019-03-28 17:36 浏览: 2954 关注: 2 人 shiyang • 2019-03-28 ...
来源: Laya_社区 发布时间: 20190327
...src='res/boy.png'></img>"; */ export class HTMLDivElement extends Sprite { 下面我们通过一些示例代码来看看运行效果: 3.1 同一个文本中设置Bold、Font、FontSize、Color、下划线 【注意:目前不支持斜体、描边、span标签内嵌的方式】 示例如...
来源: Laya3.0_文档 发布时间: 20230303