大约有 3,033 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0109 秒)
Laya_社区(1088) Laya3.0_api(672) Laya2.0_api(368) laya_api(298) Laya2.0_文档(233) Laya_示例(146) Laya2.0_示例(118) Laya3.0_文档(110)
... Laya.Sprite; import Stage = Laya.Stage; import WebGL = Laya.WebGL; export class Sprite_DrawShapes { private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.MiniAdpter.init(); Laya.init(740, 400); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENT...
来源: Laya_社区 发布时间: 20180115
API DocumentationAll Packages | All Classes | Index | Frames No Frames LightSpriteProperties | Methods | Events | Constants Packagelaya.d3.core.lightClasspublic class LightSpriteInheritanceLightSprite Sprite3D ComponentNode Node EventDispatcher ObjectSubclasses DirectionLight, PointLight,...
来源: laya_api 发布时间: 20170929
API DocumentationAll Packages | All Classes | Index | Frames No Frames BlinnPhongMaterialProperties | Methods | Constants Packagelaya.d3.core.materialClasspublic class BlinnPhongMaterialInheritanceBlinnPhongMaterial BaseMaterial laya.resource.Resource BlinnPhongMaterial 类用于实现Blin...
来源: Laya2.0_api 发布时间: 20190513
...么意思,二者有什么关系呢? demo代码如下// 程序入口 class GameMain{ constructor() { Laya.init(600,400); var sp:Laya.Sprite = new Laya.Sprite(); sp.graphics.drawRect(0,0,50,50,"#ff8822"); Laya.stage.addChild(sp); var delay:number = 5000; var timeLine:Laya.TimeLine = new Laya.Ti...
来源: Laya_社区 发布时间: 20170410
...} 2018-06-21 0 2 分享 微博 QZONE 微信 1553745787用户 赞同来自: class DialogPage extends ui.DialogPageUI { private tip:Laya.TipManager = new Laya.TipManager(); constructor() { super(); this.popupEffect= new Laya.Handler(this, function(dialog:Dialog):void { dialog.scale(1, 1); Laya.Tween.f...
来源: Laya_社区 发布时间: 20180620
....net.HttpRequest;import laya.net.Loader;import laya.utils.Browser; public class Main{private var AudioContext:Object;private var audioContext:Object;private var analyser:Object;private var audioBufferSourceNode:Object;public function Main(){Laya.init(500,500);AudioContext =Browser.window.AudioConte...
来源: Laya_社区 发布时间: 20181023
API DocumentationAll Packages | All Classes | Index | Frames No Frames ConchQuaternionProperties | Methods | Constants Packagelaya.d3.math.NativeClasspublic class ConchQuaternionInheritanceConchQuaternion ObjectImplements laya.d3.core.IClone Quaternion 类用于创建四元数。 Public Pr...
来源: Laya2.0_api 发布时间: 20190513
...发者自行在脚本里调用重绘API。 示例代码如下:const { regClass } = Laya; interface AnimatorPlayScriptInfo { animator: Laya.Animator2D; layerindex: number; playState: Laya.AnimatorState2D; } /** * 继承自AnimatorStateScript(动画状态脚本) */ @regClass() export class Animation...
来源: Laya_社区 发布时间: 20251010
...暴露的属性入口中。需要添加如下的示例代码: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.ViewStack }) public viewstack: Laya.ViewStack; @property({ type: Laya.Tab }) public tab: Laya.Tab; //组件被激活后...
来源: Laya3.0_文档 发布时间: 20251010
...方法,那么我们的定义库里只需要添加这样一个类即可:class Laya { public static function init(width:Number, height:Number, ... plugins):* { return null } } 这有点类似使用laya 原生js开发中的.d.ts文件,只是我们应该让这个laya类定义库尽量的小,满...
来源: Laya_社区 发布时间: 20170321