大约有 216 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0040 秒)
...age var分别: map0,map1,map2,map3 背景图宽高 1800 class WorldPage extends ui.WorldPageUI{ constructor (x,y) { super() this.maxX = 149850 this.maxY = 97500 this.offsetX = x * 150 this.offsetY = y * 150 this.downMouseX = 0 this.downMouseY = 0 Laya.loader.load(['bg/world_bg.jpg']) Laya.stage.o...
来源: Laya_社区 发布时间: 20181220
...ui.Image; /** * ... * @author Caixiansheng */ public class HProgressSlider extends HSlider { /**@private */ protected var _progress:Image protected var _proMask:Sprite; public function HProgressSlider(skin:String=null) { super(skin); } override protected function initialize():void{ super.initialize(...
来源: Laya_社区 发布时间: 20170327
...是IDE篇的。 我试着用代码实现物理效果class CollisionBoll extends Laya.Sprite { private _boll1:Laya.Sprite; constructor() { super(); //物理模块 this._boll1 = new Laya.Sprite(); this.addChild(this._boll1); this._boll1.x = 20; this._boll1.loadImage('comp/btn_close.png'); let box:l...
来源: Laya_社区 发布时间: 20190428
Laya2.7.1 射线提示rayCast未定义 export default class click3d extends Laya.Script3D{ constructor() { super(); //创建场景 this.scene = Laya.stage.addChild(new Laya.Scene3D()); //添加相机 this.camera = (this.scene.addChild(new Laya.Camera(0, 0.1, 100))); this.camera.transform.translate(...
来源: Laya_社区 发布时间: 20200801
...没必要无限循环检查继承关系,开发者只能是采用注释加extends Laya.script这个关键字来解决了。 当前的版本,请先用你自己证实的注释+继承脚本的方式,显示出来吧。 2021-10-18 0 6 分享 微博 QZONE 微信 柠檬_酸 赞同来自: 你的dem...
来源: Laya_社区 发布时间: 20211015
...完的文件叫 MyTestUI,在具体使用时可能这样用: MyTestView extends MyTestUI,然后在 MyTestView 中写具体显示逻辑; 如果不需要设计UI界面,整个界面通过代码拼成,这个时候 我们是直接继承自 Sprite (没有继承 View等)来写具体逻辑的...
来源: Laya_社区 发布时间: 20170929
... const { regClass, property } = Laya; @regClass() export class Animation extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Animation }) //在IDE面板中显示属性 ani: Laya.Animation; constructor() { super(); } //组件被激活后执行,此时所有节点和组件...
来源: Laya3.0_文档 发布时间: 20230629
...uot;); this.close(); } a和b都是独立的ts类, export default class a extends ui.a {……} 同时a和b都是对应的dialog ui文件a.scene 和b.scene的runtime属性关联过去的。
来源: Laya_社区 发布时间: 20190521
...何将一个RGBA图像绘制到画布里面 代码如如下: class Test extends Laya.Sprite{ render(context: laya.renders.RenderContext, x: number, y: number){ context.putImageData(null,100,100); } } 但是 putImageData 方法不存在,要怎么样才能使用putImageData 有何办法? 2017-02-16 ...
来源: Laya_社区 发布时间: 20170216
..."); }); const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { onStart() { console.log("Game start"); } } 要注意的是,需保证这些代码所在的脚本文件是被场景中引用的,否则在发布版本时被消除项目中未使用的代码,那就无...
来源: Laya3.0_文档 发布时间: 20240726