脚本/功能 【更新】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

发布4050

热门作品推荐
glow
Amplify Shader Editor 1.8.1 Unity3d材质
glow
【更新】A Pathfinding Project Pro 5.0.6
glow
C4D中世纪木质道具高品质栅栏桌椅板凳木箱
glow
Clayxels 1.9 雕刻模型工具
glow
Shader World procedural landscape, ocea
glow
Shader World procedural landscape, ocea
glow
Tree Felling System 适配UE5.1
glow
Photoscanned Trash Vol. 1 by Unimodels
glow
魔兽中的怪物模型合集下载
glow
Essential Sword & Shield Animation Pack