大约有 2,121 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0067 秒)
...件 请问2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 关于遍历产生的sprite的点击事件,急,大神帮看哈 问题状态 最新活动: 2018-10-28 21:37 浏览: 3582 关注: 2 人
来源: Laya_社区 发布时间: 20181028
...(step.tip); tipContainer.pos(step.tipx, step.tipy); } } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import HitArea = Laya.HitArea; import WebGL = Laya.WebGL; export class Sprite_Guide { private red:Sprite; private guideContainer:Sprite; private tipContainer:Sprite; pri...
来源: Laya_示例 发布时间: 20251209
发现bug,update大问题!!!!!!!!! 2.13版本 import { TableMgr } from "../common/table/TableMgr"; import { BaseWin } from "../common/windows/BaseWin"; import Const from "../Const"; import UIMain from "../ui/Game/UIMain"; export default class GameWnd extends BaseWin { pu...
来源: Laya_社区 发布时间: 20221207
...vY - nowY; prevX = nowX; prevY = nowY; } } new Text_Scroll();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_Scroll { private txt: Text; private prevX: number = 0; private prevY: ...
来源: Laya2.0_示例 发布时间: 20251209
...pContainer.pos(step.tipx, step.tipy); } } new Sprite_Guide();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import HitArea = Laya.HitArea; import WebGL = Laya.WebGL; export class Sprite_Guide { private red:Sprite; private guideContainer:Sprite; private tipContainer:Sprite; pri...
来源: Laya2.0_示例 发布时间: 20251209
...ace,为了减少代码长度和提高代码输入的效率,一般使用import来创建别名,但是工具流不支持自动的import或者import检查。手动去写import降低了编码的效率。- 使用namespace来管理代码会遇到模块执行顺序无法控制的问题,有些引擎...
来源: Laya_社区 发布时间: 20170817
...= Geolocation.PERMISSION_DENIED) alert("无权限"); } })(); module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Geolocation = Laya.Geolocation; import Position = Laya.GeolocationInfo; import Browser = Laya.Browser; import Handler = Laya.Handler; export class InputDevice_Map { /...
来源: Laya_示例 发布时间: 20251209
...绘图api,报错如一楼图。添加绘图api代码如下 module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import WebGL = Laya.WebGL; export class Sprite_DrawShapes { private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.MiniAdpter.init(); Laya.in...
来源: Laya_社区 发布时间: 20180115
...1表示成功,0表示失败 } export const extendLib: IExtendLib = Laya.importNative("steam_demo.dll"); 然后在Scene2D上新建一个组件脚本,当点击按钮时,完成初始化。 import { extendLib } from "./extlib"; const { regClass, property } = Laya; @regClass() export class NewScrip...
来源: Laya3.0_文档 发布时间: 20251010
...) 请问2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 版本不匹配! 全局 tsc (2.2.2) != VS Code 的语言服务(2.1.5)。可能出现不一致的编译错误 laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内...
来源: Laya_社区 发布时间: 20180801