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

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

111. 关于event中只读属性touches,问题,求解 [ 92%]

关于event中只读属性touches,问题,求解 主类: package { import laya.display.Text; import laya.events.Event; import laya.webgl.WebGL; public class DemoTouch { public function DemoTouch() { Laya.init(800, 600, WebGL); Laya.stage.bgColor = "#232628"; var txt:Text = new Text(); txt.text...

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

112. laya.net.Loader [ 92%]

...All Classes | Index | Frames No Frames LoaderProperties | Methods | Events | Constants Packagelaya.netClasspublic class LoaderInheritanceLoader EventDispatcher Object Loader 类可用来加载文本、JSON、XML、二进制、图像等资源。 Public Properties PropertyDefined By  cache ...

来源: laya_api 发布时间: 20170929

113. laya.device.motion.Accelerator_API3.0 [ 92%]

...ma使用beta。 目前孰是孰非尚未可知,以此为注。 Hierarchy EventDispatcher Accelerator Index Constructors constructor Accessors instance Methods event hasListener off offAll offAllCaller on once getTransformedAcceleration Constructors constructor new Accelerator(): Accelerator Define...

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

114. 自动旋转后残影 [ 92%]

...单的色块改变位置 package { import laya.display.Sprite; import laya.events.Event; import laya.events.IEventDispatcher; import laya.utils.Browser; import laya.utils.Tween;     public class testVH {   protected var _tip:Sprite; public function testVH() { IEventDispatcher; Config.isAlpha = tr...

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

115. Animation组件on绑定的Laya.Event.CLICK无法触发 [ 92%]

Animation组件on绑定的Laya.Event.CLICK无法触发 我想实现一个卡片点击然后跟随鼠标移动。卡片的显示我是用Animation做的为了方便以后卡片销毁等动画,Animation.on绑定的Laya.Event.CLICK、Laya.Event.MOUSE_UP、Laya.Event.MOUSE_DOWN都无法触发。我...

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

116. 鼠标交互-Hold [ 92%]

...效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Event = Laya.Event; var Texture = Laya.Texture; var Browser = Laya.Browser; var Ease = Laya.Ease; var Handler = Laya.Handler; var Tween = Laya.Tween; var WebGL = Laya.WebGL; const HOLD_TRIGGER_TIME = 1000; const apePath = "../...

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

117. Event触发不了 [ 92%]

Event触发不了 var btn:Sprite = new Sprite(); login.addChild(btn); btn.graphics.drawRect(100, 200, 50, 50, "#000"); btn.pos(100, 200); btn.size(50,50); btn.on(Event.MOUSE_DOWN, this, function():void {console.log(1);}); btn.on换成Laya.stage.on是可以触发的,但是btn却触发不了。 麻...

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

118. laya.d3.webxr.core.WebXRSessionManager_API3.0 [ 92%]

...er Manages an XRSession to work with layaAir engine author miner Hierarchy EventDispatcher WebXRSessionManager Index Properties baseReferenceSpace currentFrame currentTimestamp defaultHeightCompensation session viewerReferenceSpace EVENT_FRAME_LOOP EVENT_MANAGER_END Accessors currentFrameRate refere...

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

119. 新手!谁懂得把下面两个文件转成layaair可以运行的代码 [ 92%]

...nager.AppManager;       import flash.display.Sprite;     import flash.events.Event;     import flash.external.ExternalInterface;     import flash.net.URLVariables;     import flash.text.TextField;     import flash.text.TextFieldAutoSize;     import flash.text.TextFormat;       impo...

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

120. laya.d3.component.AttachPoint [ 92%]

...Classes | Index | Frames No Frames AttachPointProperties | Methods | Events Packagelaya.d3.componentClasspublic class AttachPointInheritanceAttachPoint Component3D EventDispatcher Object AttachPoint 类用于创建挂点组件。 Public Properties Hide Inherited Public Properties Show Inherit...

来源: laya_api 发布时间: 20170929