All-in-One Solution for Indie Game Development · Empowering Indie Developers' Dreams
Documentation · Quick Start · QQ Group: 467608841 / 233840761
The Entry Component is the core entry point of Game Frame X. It provides the GameEntry singleton and the GameApp static facade class for quick access to all framework components.
GameApp is a static facade class that maps GameApp.{Name} to GameEntry.GetComponent<{Name}Component>(). Examples:
| GameApp | Equivalent |
|---|---|
GameApp.Event |
GameEntry.GetComponent<EventComponent>() |
GameApp.UI |
GameEntry.GetComponent<UIComponent>() |
GameApp.Asset |
GameEntry.GetComponent<AssetComponent>() |
Naming convention: property name = component name without the Component suffix (special cases: FUI = FairyGUIComponent, GUI = UGUIComponent).
Choose one of the following methods:
-
Edit your Unity project's
Packages/manifest.jsonand add thescopedRegistriessection:{ "scopedRegistries": [ { "name": "GameFrameX", "url": "https://gameframex.upm.alianblank.uk", "scopes": [ "com.gameframex" ] } ], "dependencies": { "com.gameframex.unity.entry": "1.2.1" } }scopescontrols which packages are resolved through this registry. Only packages whose names start withcom.gameframexwill be fetched from it. -
Add to
manifest.jsondependencies:{ "com.gameframex.unity.entry": "https://github.com/gameframex/com.gameframex.unity.entry.git" } -
Use Package Manager in Unity with Git URL:
https://github.com/gameframex/com.gameframex.unity.entry.git -
Clone the repository into your Unity project's
Packagesdirectory. It will be loaded automatically.
// Standard: via GameEntry (no dependency on com.gameframex.unity.entry)
var component = GameEntry.GetComponent<EventComponent>();
// Shortcut: via GameApp (requires com.gameframex.unity.entry)
GameApp.Event.Subscribe(eventId, handler);- QQ Group: 467608841 / 233840761
See Releases for changelog.
| Package | Description |
|---|---|
com.gameframex.unity.asset |
2.5.0 |
com.gameframex.unity.config |
1.1.3 |
com.gameframex.unity.coroutine |
1.0.1 |
com.gameframex.unity.download |
1.1.0 |
com.gameframex.unity.entity |
2.4.1 |
com.gameframex.unity.event |
1.1.0 |
com.gameframex.unity.fsm |
1.0.3 |
com.gameframex.unity.globalconfig |
1.3.0 |
com.gameframex.unity.localization |
2.2.1 |
com.gameframex.unity.mono |
1.1.0 |
com.gameframex.unity.network |
2.5.1 |
com.gameframex.unity.procedure |
1.1.0 |
com.gameframex.unity.scene |
2.2.0 |
com.gameframex.unity.setting |
1.5.0 |
com.gameframex.unity.sound |
1.1.1 |
com.gameframex.unity.timer |
1.1.0 |
com.gameframex.unity.ui |
2.10.0 |
com.gameframex.unity.ui.fairygui |
3.3.0 |
com.gameframex.unity.web |
1.3.3 |
com.gameframex.unity.web.protobuff |
1.1.1 |
See LICENSE.md for license information.