11000+款5星资源

8.5万+用户参与评分

10万+社区成员鼎力支持

每款资源都经过 Unity 审核

首页
工具
实用工具
1/8
A power system like in the game “Satisfactory”
可编程渲染管线(SRP)兼容性
Unity可编程渲染管线(SRP)是让您能够通过C#脚本控制渲染的一个功能。SRP是支撑通用渲染管线(URP)和高清渲染管线(HDRP)的底层技术。
Unity版本内置渲染管线通用渲染管线(URP)高清渲染管线(HDRP)
2021.1.4f1
兼容
兼容
兼容
其他兼容性信息

It works in every render pipline but when you don't use the universal render pipline you must update the materials to your render pipline, but this dosen't effect the logic.

描述

Its good for games that uses machines that need power and a system for the player to build a power system.


Please let me know about bug you encounter so that i can fix them.

技术细节

Setup:

-Have a "PowersystemNetworkController" in your scene, because its there to connect and disconnect systems


How it works:

-To connect two power system use the "PowersystemNetworkController", when 2 system objects are given it connects them -> always have a "PowersystemNetworkController" in your scene

-When a generator, consumer, ... is created it creates a power system for it. Connect two system with the "PowersystemNetworkController" to make one bigger system

-Set power input/output in the prefab of the generator/consumer

-When power consumption > power generation the power system sets all mashines to have no power

-To restart the system in the example scene there is a button to restart in other in other cases call the "RestartPowerSystem" function in the power system script -> returns a bool if the power system restart has succeeded or not(true/false)


Look at the example scene to see in action how it works

Electrical power/energy system

(暂无评分)
19 users have favourite this asset
(19)
FREE
23 views in the past week
高品质资源
11000+款5星资源
深受用户信赖
8.5万+用户参与评分
强大的社区支持
10万+社区成员鼎力支持
Unity logo
语言
反馈
合作伙伴计划
合作伙伴
USD
EUR
Copyright © 2025 Unity Technologies
所有价格不包含税
USD
EUR
FREE