大约有 397 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0062 秒)
...itle预制体放到Box下 (动图3-5) 示例代码如下: const { regClass, property } = Laya; @regClass() export class ScriptA extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type: Laya.Box } ) private box: Laya.Box; constructor() { super(); } onStart(): void { //加载预...
来源: Laya3.0_文档 发布时间: 20250214
...73741824; const TiledMapFlipConstHalf = TiledMapFlipConst / 2; class GridSprite extends Laya.Sprite { constructor() { super(...arguments); this.relativeX = 0; this.relativeY = 0; this.isAloneObject = fals...
来源: Laya_社区 发布时间: 20220627
...真阅读文章,现在改成在具体的使用说明: 主域:public class LayaUISample { public function LayaUISample() { //微信小游戏适配库初始化 MiniAdpter.init(true,false); //初始化引擎 Laya.init(640, 480,WebGL); Laya.stage.scaleMode = Stage.SCALE_FIXED_HEIGHT; Laya.stage.bg...
来源: Laya_社区 发布时间: 20180525
...5%9F%9F%E5%BC%80%E5%8F%91/image-20190307200032836.png?lastModify=1551962708class Main { constructor() { //设置子域 Laya.isWXOpenDataContext = true; Laya.isWXPosMsg = true; //根据IDE设置初始化引擎 Laya.init(GameConfig.width, GameConfig.height,false); Laya.stage.scaleMode = GameConfig.sca...
来源: Laya_社区 发布时间: 20190307
...,方法与web发布略有不同,加载代码示例如下: const { regClass, property } = Laya; @regClass() export class Script extends Laya.Script { @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均...
来源: Laya3.0_文档 发布时间: 20250103
...qianxiao * @Date: 2017/12/25 * @Time: 下午3:52 * @Desc: 字体样式 **/ class TextFormat implements ITextFormat { /** * 背景色 */ bgColor: string; /** * 是否加粗 */ bold: number; /** * 文本框背景色 */ borderColor: string; /** * 文本颜色 */ color: string; /** * 字体 */ font: str...
来源: Laya_社区 发布时间: 20171226
...备发送请求的功能。我们写个简单的例子来看下用法: class LayaSample { constructor() { //创建HttpRequest对象 let http: Laya.HttpRequest = new Laya.HttpRequest(); //设置超时时间 http.http.timeout = 10000; //发送了一个简单的请求 http.send("resources/data.txt", ...
来源: Laya3.0_文档 发布时间: 20250104
...ya.Text; Point = Laya.Point; Tween = Laya.Tween; TextArea = Laya.TextArea; class UI_RefreshList { constructor() { this.baseBox = null; this.refreshLoading = null; this.loadingAni = null; this.loadingLabel = null; this.refreshList = null; /** 消息生成的当前最大id值 */ this.msgIdNow=1; /** ...
来源: Laya2.0_示例 发布时间: 20250220
...,添加的代码如下: ... import Vector3 = Laya.Vector3; ... export class AnimationScript extends Laya.AnimatorStateScript { ... private model: Laya.Sprite3D; /**@internal */ setPlayScriptInfo(animator: Laya.Animator | Laya.Animator2D, layerindex: number, playstate: Laya.AnimatorState | Laya.A...
来源: Laya3.0_文档 发布时间: 20240910
...); // 名字 this.name = "gemini"; this.init(); } // 注册类 IsLand Laya.class(IsLand,"IsLand",laya.display.Sprite); // 原型 var _proto = IsLand.prototype; // 初始化 _proto.init = function(){ // 球体 this.ball = new Sprite(); // 城堡 this.tower = new Sprite(); // 飞艇 this.aeroboat = ne...
来源: Laya_社区 发布时间: 20170720