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

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

371. 分享:简单聊天室 [ 45%]

...port laya.utils.Browser; import ui.test.HtmlPageUI; public class HtmlView1 extends HtmlPageUI { private var str:String; private var str2:String; private var isSend:Boolean=false; public function HtmlView1() { super(); // 文本样式一 str="<span color='blue' style=' font" + ":18px 华文琥珀'...

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

372. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 44%]

...错,这个时候借用下any吧,如: classA implements IA{ } classB extends classA{ } var items:IA = ; function(item:classB):void {  //items.push(item);//报错,提示类型错误  //方案一  items.push(<any>item);  //方案二  var temp:IA = <IA>item;  items.push(temp); ...

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

373. 扇形遮罩画不全画了一个很奇怪的形状但是矩形的就没问题。显示效果如下:版本号1.7.10 [ 44%]

...ize;     import laya.ui.Image;          public class ProcessTimer extends Sprite     {         public var img:Image;         public var maskSp:Sprite;         public var percent:Number;         public var type:String = "PROGRESS_TIMER_TYPE_RADIAL";         p...

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

374. 纹理压缩 · LayaAir3.0文档 · LAYABOX [ 44%]

...下: const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { onAwake(): void { let img = new Laya.Image; Laya.stage.addChild(img); img.pos(500,100); img.skin = "resources/layabox.png"; //纹理压缩的图片的路径 } onStart() { Laya.Stat.show(0, 0); //性能面...

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

375. 其他引擎的Demo-Example_23 [ 44%]

...rement the ticker tick += 1; } } } import laya.display.Sprite; class Laser extends Sprite { public var life:int; }

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

376. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 44%]

...18-05-08 0 0 分享 微博 QZONE 微信 Miller 赞同来自:   class Item extends Laya.Box {   public static WID: number = 600; public static HEI: number = 85; private img: Laya.Image;         //private text: Laya.Label; constructor(){ super(); this.size(Item.WID, Item.HEI); this.img = ne...

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

377. 精灵 · LayaAir3.0文档 · LAYABOX [ 44%]

... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Sprite }) public sprite1: Laya.Sprite; @property({ type: Laya.Sprite }) public sprite2: Laya.Sprite; constructor() { super(); } /** * 组件被激活...

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

378. TiledMap地图 · LayaAir3.0文档 · LAYABOX [ 43%]

...示例 const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { private tMap:Laya.TiledMap; onEnable() { //创建地图对象 this.tMap = new Laya.TiledMap(); //创建Rectangle实例,视口区域 var viewRect:Laya.Rectangle = new Laya.Rectangle(0, 0, Laya.stage.desi...

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

379. LayaAir IDE 1.4.0新增功能 附加(扩展)脚本的使用 [ 43%]

...逻辑代码package game { import laya.display.Animation; public class Ani extends Animation { private var _isSlow:Boolean=true; public function Ani() { } public function get isSlow():Boolean { return _isSlow; } //isSlow:是否放慢速度 public function set isSlow(value:Boolean):void { _isSlow=v...

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

380. 其他引擎的Demo-Example_23 [ 43%]

...rement the ticker tick += 1; } } } import laya.display.Sprite; class Laser extends Sprite { public var life:int; }

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