大约有 1,557 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0058 秒)
Laya_社区(551) Laya3.0_api(360) Laya2.0_api(247) laya_api(208) Laya2.0_文档(120) Laya3.0_文档(69) Laya2.0_示例(2)
...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
...。下面给出一个示例代码,实现脚本控制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
...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
...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
... from "MyModule" 导入import {testProto} from "MyModule"; // 程序入口 class GameMain{ constructor() { Laya.init(600,400, 0x000000); console.log("start"); testProto(); } } new GameMain();编译没报错,运行起来程序窗口打开了,也没有报错。只是没有打印任何东西出来...
来源: Laya_社区 发布时间: 20171115
...个回复 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
...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
... 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
...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
... { 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