脚本/功能 【更新】Simple HTTP and REST Server 1.6

Unity插件信息
插件名称: Simple HTTP and REST Server
插件官网: https://assetstore.unity.com/packages/tools/utilities/simple-http-and-rest-server-244127
版本: 1.6
解压密码:
素材类型: 脚本/功能
本帖最后由 cg小白兔 于 2023-11-19 14:17 编辑











How can this asset
p me?
Exchanging information between Unity and another program is complicated. This asset provides a simple and fast way to ensure the exchange of information in both directions.

Simple Routing
Implementing routes in Unity has never been easier! With a simple attribute that you write over the function you can specify both the HTTP method and the path.

Event Based
The server utilizes an event-based system to register all route handlers. Simply drag and drop the desired route handler into the server. Additionally, the event-based system is capable of supporting programmatic events.

Resource Loading
Using Resource Loading you can load files from the Resources folder of your game and output them via the HTTP server. See the example "2. Load Files from Resource Folder" in the Examples folder.

Fast
The speed of the server is overwhelming, which is achieved by using only native implementations. To ensure this, external libraries were deliberately avoided during development.

Multiple Instances
The event based architecture makes it possible to run many different servers over different ports at the same time.

Listening Addresses
Under Listening Addresses you can not only select the ports to listen on, but also specify whether the server is accessible from the home network or only from the same computer.

Platform support
Windows (Mono/IL2CPP Builds)
Linux (Mono/IL2CPP Builds)
Mac OS M1 (Mono/IL2CPP Builds)
Mac OS Intel (Mono/IL2CPP Builds)
Android (Currently not supported)
iOS (Currently not supported)
WebGL (Not supported)
Game Consoles (Not supported)


该资产如何帮助我?
在 Unity 和另一个程序之间交换信息非常复杂。此资产提供了一种简单快捷的方法,可确保双向信息交换。

简单路由
在 Unity 中实现路由从未如此简单!只需在函数上写入一个简单的属性,您就可以指定 HTTP 方法和路径。

基于事件
服务器利用基于事件的系统来注册所有路由处理程序。只需将所需的路由处理程序拖放到服务器中即可。此外,基于事件的系统还能支持编程事件。

资源加载
使用资源加载功能,您可以从游戏的资源文件夹中加载文件,并通过 HTTP 服务器输出。请参阅示例文件夹中的 "2.从资源文件夹加载文件 "示例。

速度快
服务器的速度是压倒性的,这是通过只使用本地实现实现的。为确保这一点,在开发过程中特意避免使用外部库。

多实例
基于事件的架构使同时通过不同端口运行多个不同服务器成为可能。

监听地址
在监听地址下,您不仅可以选择要监听的端口,还可以指定服务器是可以从本机网络访问,还是只能从同一台计算机访问。

平台支持
Windows (Mono/IL2CPP Builds)
Linux (Mono/IL2CPP Builds)
Mac OS M1(Mono/IL2CPP 版本)
Mac OS Intel(Mono/IL2CPP 版本)
安卓(目前不支持)
iOS(目前不支持)
WebGL(不支持)
游戏机(不支持)






作者 cg小白兔 发表于 2023-11-16 13:47:32
您需要登录后才可以回帖 登录 | 立即注册
cg小白兔

关注0

粉丝0

发布4060

热门作品推荐
glow
GUI Kit - Matt Metal 2.0.0 按钮图标UI素
glow
女性人物模型 萝莉 可爱 卡通角色max文件有
glow
Classic RPG GUI 1.1手绘中世纪MMO经典UI素
glow
Two Handed Sword Animset Pro 1.2双手持剑
glow
Girl GreatSword AnimSet 1.0动漫风格女性
glow
Mesh Simplify 1.10 Unity网格简化插件
glow
UIObject3D:Render 3D Models on any Unit
glow
黑色幸存者 Hyejin 慧珍 巫女 含骨骼动画 F
glow
Climbing System 4.0 攀爬功能
glow
AVPro Live Camera 2.9.1