大约有 2,135 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0086 秒)
...个时候,Unity工程里有LayaAirLibrary.dll和它的源码。Unity在Import新的文件后,发现了两份代码的冲突,却很体贴地帮我们选择了执行源码,忽略dll。可以从如下Warning中看到。 当我们运行LayaAir Export时,执行的则是我们修改过的源码...
来源: Laya_社区 发布时间: 20180405
...件 请问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_示例 发布时间: 20260303
发现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_示例 发布时间: 20260303
...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_示例 发布时间: 20260303
...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_示例 发布时间: 20260303
...绘图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