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

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

1061. laya.d3.math.Viewport [ 68%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames ViewportProperties | Methods Packagelaya.d3.mathClasspublic class ViewportInheritanceViewport Object Viewport 类用于创建视口。 Public Properties PropertyDefined By  height : Number高度Viewport  maxDepth : ...

来源: laya_api 发布时间: 20170929

1062. as3数组push进去对象,为什么对象的属性没了 [ 68%]

...享 微博 QZONE 微信 wudi199553 赞同来自: package {     public class LayaSample {                  public function LayaSample() {             //初始化引擎             Laya.init(1136, 640);                          var a:TestData = new Te...

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

1063. 分享:改变图片皮肤,保持图片原样宽高显示 [ 68%]

...laya.events.Event; import laya.ui.Image; import laya.utils.Handler; public class LayaAirDemo { private var image:Image; public function LayaAirDemo() { Laya.init(800,600); Laya.loader.load(["bg.jpg","logo.png"],Handler.create(this,onLoaded)); } private function onLoaded():void { image=new Image(); i...

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

1064. laya.components.CommonScript [ 68%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames CommonScriptProperties | Methods Packagelaya.componentsClasspublic class CommonScriptInheritanceCommonScript Component Object CommonScript 类用于创建公共脚本类。 Public Properties Hide Inherited Public Propert...

来源: Laya2.0_api 发布时间: 20190513

1065. js怎么主动调用AS定义的静态变量? [ 68%]

...2017-03-21 17:11 浏览: 1247 关注: 2 人 vincent • 2017-03-21 17:41 //class common.dataModule.DataSingleton var DataSingleton=(function(){ function DataSingleton(){}; __class(DataSingleton,'common.dataModule.DataSingleton'); DataSingleton.dxMerchantID=20000020; DataSingleton.dxAccount=null Data...

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

1066. runTime使用(JavaScript-IDE篇(JS)-组件化开发相关) [ 68%]

...钮)的功能,全部代码如下所示: ```typescript export default class ImageRunTime extends Laya.Image{ constructor(){ super(); this.scaleTime = 100; //设置组件的中心点 this.anchorX = this.anchorY = 0.5; //添加鼠标按下事件侦听。按时时缩小按钮。 this.on(Laya.Event...

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

1067. laya.d3.graphics.Vertex.VertexShuriKenParticle [ 68%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames VertexShuriKenParticleMethods | Constants Packagelaya.d3.graphics.VertexClasspublic class VertexShuriKenParticleInheritanceVertexShuriKenParticle ObjectSubclasses VertexShurikenParticleBillboard, VertexShurikenParticleMe...

来源: Laya2.0_api 发布时间: 20190513

1068. ViewStack属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 68%]

...用请参考 [http://layaair.ldc.layabox.com/api/index.html?category=Core&class=laya.ui.ViewStack](https://layaair2.ldc2.layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=UI&class=laya.ui.ViewStack)。 ## 2、通过LayaAirIDE创建ViewStack组件 ### 2.1 创建ViewStack页面 ##...

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

1069. 动画-SWF动画 [ 68%]

...ya.Stage; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Animation_SWF { private SWFPath: string = "../../res/swf/dragon.swf"; private MCWidth: number = 318; private MCHeight: number = 406; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidt...

来源: Laya_示例 发布时间: 20241001

1070. 加载-错误处理和进度 [ 68%]

...ader; import Texture = Laya.Texture; import Handler = Laya.Handler; export class Loader_ProgressAndErrorHandle { constructor() { Laya.init(550, 400); // 无加载失败重试 Laya.loader.retryNum = 0; var urls: Array = ["do not exist", "../../res/fighter/fighter.png", "../../res/legend/map.jpg"]; La...

来源: Laya_示例 发布时间: 20241001