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

大约有 1,557 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0058 秒)

1051. laya.maths.Quaternion_API3.0 [ 53%]

...ed Externals Only exported Menu Globals "laya/maths/Quaternion" Quaternion Class Quaternion Quaternion 用于创建四元数。 Hierarchy Quaternion Implements IClone Index Constructors constructor Properties w x y z DEFAULT NAN Methods clone cloneTo equals forNativeElement fromArray getYawPitchR...

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

1052. 显示文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 53%]

...。下面给出一个示例代码,实现脚本控制Label: const { regClass, property } = Laya; @regClass() export class LabelControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.Label } ) public lab: Laya.Label; constructor() { super(); } /** * 组件被激活...

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

1053. laya.d3.math.Vector4_API3.0 [ 53%]

...erited Externals Only exported Menu Globals "laya/d3/math/Vector4" Vector4 Class Vector4 Vector4 用于创建四维向量。 Hierarchy Vector4 Implements IClone Index Constructors constructor Properties w x y z ONE UnitW UnitX UnitY UnitZ ZERO Methods clone cloneTo forNativeElement fromArray leng...

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

1054. laya.d3.core.Avatar_API3.0 [ 53%]

...nherited Externals Only exported Menu Globals "laya/d3/core/Avatar" Avatar Class Avatar Avatar 用于创建Avatar。 Hierarchy Resource Avatar Implements IClone Index Constructors constructor Properties destoryedImmediately lock name url uuid AVATAR DEBUG Accessors cpuMemory destroyed gpuMemory i...

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

1055. 用npm的protobuf导出的ts代码。然后用import { } from "" 运行到这里没反应,不继续执行,也不报错。 [ 53%]

... from "MyModule" 导入import {testProto} from "MyModule"; // 程序入口 class GameMain{ constructor() { Laya.init(600,400, 0x000000); console.log("start"); testProto(); } } new GameMain();编译没报错,运行起来程序窗口打开了,也没有报错。只是没有打印任何东西出来...

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

1056. Label Text控件 无法显示全子图 [ 53%]

...个回复 Laya_Aaron 赞同来自: 临时绕过方法: TextRender.as   class TextRender getFontSizeInfo 函数,最后部分    var xoff:int = Math.max( orix - pixelBBX[0], 0);    var yoff:int = Math.max( oriy - pixelBBX[1], 0);    var bbxw:int = pixelBBX[2] - pixelBBX[0];    var bbxh:int...

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

1057. 分享:销毁龙骨动画! [ 53%]

...aya.utils.Browser; import laya.utils.Stat; import laya.webgl.WebGL; public class ASDemo { private var mAniPath:String; private var mFactory:Templet; private var mCurrIndex:int = 0; private var mArmature:Skeleton; public function ASDemo() { WebGL.enable(); Laya.init(Browser.width, Browser.height); La...

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

1058. List 组件做的手风琴Demo [ 53%]

...   this.listArr[0].refresh()         }     /** * 创建BOX */ class Item extends Laya.Box{     public static WID:number =100;     public static HEI:number =30;     constructor(){         super()         this.size(Item.WID,Item.HEI);         var img1 =n...

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

1059. LayaAir的组件化开发(TypeScript-IDE篇(TS)-组件化开发相关) [ 53%]

...com/api2/Chinese/index.html?version=2.9.0beta&type=Core&category=Component&class=laya.components.Script ### 三、Runtime与脚本的使用区别 LayaAir的组件化开发,核心就是Runtime与Script(脚本组件)的合理运用,生命周期方法的使用。 有不少开发者对IDE...

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

1060. Laya.timer.loop() 报错 Cannot read property 'loop' of null [ 53%]

... { List } from "laya/ui/List"; import { Laya } from "laya"; export default class test_move extends Image{ // /** @prop {name:move_img, tips:"用来移动的箭头", type:Image} */ // public _move_img: Image; // public _list: List; //创建一个 List 的实例对象 list 。 private n:number = 0;...

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