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

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

371. 精灵 · LayaAir3.0文档 · LAYABOX [ 45%]

... 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

372. 微信小游戏加载资源问题 [ 45%]

...niFileMgr.DESCENDING = 2; MiniFileMgr.NUMERIC = 16; class MiniSoundChannel extends Laya.SoundChannel { constructor(audio, miniSound) { super(); this._audio = audio; this._miniSound = miniSound; this._onEnd = MiniSoundChannel.bindToThis(this.__onEnd, this); audio.onEnded(this._onEnd); } static bindTo...

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

373. TiledMap地图 · LayaAir3.0文档 · LAYABOX [ 45%]

...示例 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

374. HttpRequest详解(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 45%]

...a package { import laya.net.HttpRequest; public class HttpRequestExtension extends HttpRequest { public function HttpRequestExtension() { super(); } public override function send(url:String, data:*=null, method:String="get", responseType:String="text", headers:Array=null):void { super.send(url,data,...

来源: Laya2.0_文档 发布时间: 20210715

375. 分享:图集资源做位图文本的工具类(知道fontclip组件的可以略过了,之前一直没注意到这个组件) [ 45%]

...况修改。有需要的可以参考下/* * 位图字体; */ class BPFont extends Laya.Sprite { // 文本内容 private _text: string; // 水平排列方式 private _align: string; // 资源前缀 private resFix: string; // 间距 private _padding: number; // 位图集合 private chars: Laya.Sprite ...

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

376. localRotationEulerY旋转位置错误 [ 45%]

...方式实现,比如子弹脚本。  */ export default class GameUI extends ui.test.TestSceneUI {     private mat1: Laya.BlinnPhongMaterial;     private newScene: Laya.Scene3D;     private arr: any;     constructor() {         super();         this.arr...

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

377. Tree属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 45%]

...ght": "0", "left": "0"}}; /****树形结构中的单元格****/ class Item extends Box { public function Item() { //实例“文件夹”背景切片对象 var selectBox:Clip = new Clip("../../../../res/ui/tree/clip_selectBox.png", 1, 2); //设置 selectBox 的name 为“selectBox”时,将被识...

来源: Laya2.0_文档 发布时间: 20210715

378. 3d显示对象克隆体超出舞台不再显示的bug2.1.0.btea1 [ 44%]

...脚本方式实现,比如子弹脚本。 */ export default class GameUI extends ui.test.TestSceneUI { scene3d:Laya.Scene3D; sp:Laya.Sprite3D; sp2:Laya.Sprite3D; translateA = new Laya.Vector3(-0.05, 0, 0); translateD = new Laya.Vector3( 0.05, 0, 0); constructor() { super(); //添加3D场景 var sce...

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

379. UI加载完成后无法获取控件的大小——超详细版问题 [ 44%]

... Loader = laya.net.Loader; import Stage = laya.display.Stage; class TestUI extends ui.test.testwhUI { constructor() { super(); this.mypan.vScrollBarSkin = ""; Laya.stage.on(Laya.Event.RESIZE, this, this.fitDOMElements); this.mypan.vScrollBar.on(Laya.Event.CHANGE, this, this.fitDOMElements_scroll); }...

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

380. LAYABOX游戏实时语音之APP版本 [ 44%]

...arAt(Math.floor(Math.random() * maxPos)); } return str;; } class LoginView extends ui.LoginUI { constructor() { super(); this.login.on(Laya.Event.CLICK, this, this.Loginyim); this.joinroom.on(Laya.Event.CLICK, this, this.JoinRoom); this.RecordAudio.on(Laya.Event.MOUSE_DOWN, this, this.StartRecordAud...

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