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

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

161. 发现bug,update大问题!!!!!!!!! 2.13版本 [ 58%]

... from "../Const"; import UIMain from "../ui/Game/UIMain";  export default class GameWnd extends BaseWin {     public view: UIMain;     /** 角色 */     private character: Laya.Sprite     /** 角色刚体*/     private rig: Laya.RigidBody     /** 医疗包*/     private addhp: Laya.Sp...

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

162. laya加载unity插件导出的场景 physics3D is not a function [ 58%]

...,建议用脚本方式实现,比如子弹脚本。 */ export default class GameUI extends ui.test.TestSceneUI { constructor() { super();       //添加3D场景 Laya.Scene3D.load("res/Conventional/SimpleTown_DemoScene.ls",Laya.Handler.create(this,function(s:Laya.Scene3D):void{ var scene = s; L...

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

163. 这种进度条怎么实现? [ 58%]

...信 Barry Allen 赞同来自:  import Sprite = Laya.Sprite export default class Test extends Sprite{ public DEF_SIZE: number = 200 public CIRCLE_WIDTH: number = 20 public $circleSprite: Sprite = new Sprite() public startY: number = -90 constructor() { super() this._init() } private _init() { this.c...

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

164. 关于位图字体的valign属性问题 [ 58%]

...isplay.Sprite; import laya.display.Text; import laya.utils.Handler; public class GraphicCircle extends Sprite { private var mFontName:String="dataFont"; private var mBitmap:BitmapFont; public function GraphicCircle() { super(); Laya.init(550,400); mBitmap=new BitmapFont(); mBitmap.loadFont("date/dat...

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

165. UI运行时 · LayaAir3.0文档 · LAYABOX [ 58%]

...建好了UI组件脚本,而后添加的代码如下所示: const { regClass } = Laya; import { RuntimeScriptBase } from "./RuntimeScript.generated"; @regClass() export class RuntimeScript extends RuntimeScriptBase { onAwake(): void { // Button添加鼠标事件,让Image不显示 this.Button.on...

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

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

...题。 2018-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...

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

167. list 加载动画为什么实现的效果会错乱掉? [ 57%]

...; ani.scale(80/bounds.width ,80/bounds.height) this.addChild(ani) } } Laya.class(Item1, "Item1", Box); var List = Laya.List; function setup(effList) { var list = new List(); list.itemRender = Item1; list.repeatX = 3; list.repeatY = 4; list.x = (Laya.stage.width - WID * list.repeatY) / 2 - 100; list....

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

168. 加载.lh文件 运行后黑屏 无法显示 [ 57%]

...一下  图片为运行的结果 import GameConfig from "./GameConfig";  class Main {     //private scene:Laya.Scene3D;     private text:Laya.Text;     private _upVector3:Laya.Vector3 = new Laya.Vector3(0, 1, 0);     constructor() {         this._upVector3 = new Laya.Vector...

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

169. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 57%]

...引用  还有运行效果  希望有所了解的给指点一下 多谢 class MultiTouch{     private text:Laya.Text;     private _upVector3:Laya.Vector3 = new Laya.Vector3(0, 1, 0); constructor(){         Laya.alertGlobalError = true; this._upVector3 = new Laya.Vector3(0, 1, 0); /...

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

170. 位图字体的制作与使用(TypeScript-LayaAir基础篇(TS)-文本) [ 57%]

...i } from "./ui/layaMaxUI"; //继承BitmapFont的ui场景类 export default class AllText extends ui.examples.text.BitmapFontUI { //给自己注册的字体起个名 private fontName: string = "diyFont"; constructor() {super();} onAwake(): void { //加载位位图字体 this.loadBitmapFont(); } /** *...

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