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

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

201. HTML文本 · LayaAir3.0文档 · LAYABOX [ 44%]

...<img src='res/boy.png'></img>"; */ export class HTMLDivElement extends Sprite { 下面我们通过一些示例代码来看看运行效果: 3.1 同一个文本中设置Bold、Font、FontSize、Color、下划线 【注意:目前不支持斜体、描边、span标签内嵌的方式】 ...

来源: Laya3.0_文档 发布时间: 20230303

202. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 42%]

....addChild(this.text); } } //激活启动类 new Main(); class MonkeyScript extends Laya.Script3D{     constructor(){         super();         this.scene = null;         this.text = null;         this.camera = null;         this.lastPosition = new Laya.Vect...

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

203. 正常运行的2.1升级到2.2.0出现循环依赖的错误,这是咋回事丫 ? [ 42%]

...面的import就没了。  无法去掉的import主要是类似 new B, extends B, instanceof B, 以及静态成员访问B.stM 这种形式 例如上面的改成 b=new B() 就真的是循环了。 对于真正的循环可以通过引入一个接口对象等方式解决。这个就要看具体项...

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

204. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 41%]

...aMaxUI"; import MyDialogUI = ui.game.MyDialogUI; ​ export class MyDialog extends MyDialogUI {    constructor() {        super();   } ​    onOpened(param: any): void {        console.log("mylog------:" + JSON.stringify("onOpened"));        this.openDataView.postMsg("test10086"); ...

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

205. laya.ui.List_API3.0 [ 37%]

...dex= ", index); } } } import laya.ui.Box; import laya.ui.Label; class Item extends Box { public function Item() { graphics.drawRect(0, 0, 100, 20,null, "#ff0000"); var label:Label = new Label(); label.text = "100000"; label.name = "label";//设置 label 的name属性值。 label.size(100, 20); addCh...

来源: Laya3.0_api 发布时间: 20231115

206. laya.ui.Tree_API3.0 [ 37%]

... import laya.ui.Box; import laya.ui.Clip; import laya.ui.Label; class Item extends Box { public function Item() { this.name = "render"; this.right = 0; this.left = 0; var selectBox:Clip = new Clip("resource/ui/clip_selectBox.png", 1, 2); selectBox.name = "selectBox"; selectBox.height = 24; selectBox...

来源: Laya3.0_api 发布时间: 20231115

207. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 37%]

...*******************************************************/ class DollGunRole extends GunRole{  public _box: GunBox; // toset: /** 飞行的范围, 用于计算飞行路径 */ private _fly_site:Site = new SiteEntity( 10, 10, -1, 400 );  public static _ani_cached:boolean = false;  // toset: /** 飞...

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

208. UI-RefreshList [ 36%]

..."visible": false } }; } this.msgIdNow += i; return _arr; } } class ItemBox extends Box{ public var msgBG; public var selectBox; public var avatar; public var redHot; public var redHotText; public var LmsgTitle; public var LmsgTime; public var LmsgText; public var flag; public var flagText; public va...

来源: Laya2.0_示例 发布时间: 20241001

209. laya.ui.Dialog_API3.0 [ 35%]

...Button; import laya.ui.Dialog; import laya.ui.Image; class Dialog_Instance extends Dialog { function Dialog_Instance():void { var bg:Image = new Image("resource/ui/bg.png"); bg.sizeGrid = "40,10,5,10"; bg.width = 150; bg.height = 250; addChild(bg); var image:Image = new Image("resource/ui/image.png"...

来源: Laya3.0_api 发布时间: 20231115

210. 微信小游戏 · LayaAir3.0文档 · LAYABOX [ 33%]

...: const { regClass, property } = Laya; @regClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方...

来源: Laya3.0_文档 发布时间: 20240528