https://github.com/sassembla/ArrowCell
short range messaging system for Unity.
https://github.com/sassembla/ArrowCell
Last synced: 10 months ago
JSON representation
short range messaging system for Unity.
- Host: GitHub
- URL: https://github.com/sassembla/ArrowCell
- Owner: sassembla
- License: mit
- Created: 2017-07-11T09:48:05.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-21T15:17:58.000Z (over 8 years ago)
- Last Synced: 2024-11-10T20:37:15.429Z (over 1 year ago)
- Language: C#
- Size: 18.6 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ArrowCell
change child's child's... child's component from far parent without settings.
## Motivation
control one or more items(child GameObject's components) from one parent GameObject without attaching child component to parent GameObject.
the direction of finding target component is one-way. (parent = root GameObject -> it's children -> it's children...)
this makes easy to change the child's child's .. child's specific typed component from parent.
especially in the case of the child contents are changing in game scene dynamically.
and found component will be cached with name of the GameObject and the Type of component.
## Usage
```C#
using ArrowCellCore;
// get Text component from "ItemLabel01" then change text to "changed.".
GAMEOBJECT.GetRemoteComponent("ItemLabel01", textComp => textComp.text = "changed.");
```
## Planned
* @Editor, visualiser of which type/component is connected from code.(visualise code -> ast -> connectivity by ArrowCell.)
* @Runtime, improve fail-design.
## license
see below.
[LICENSE](./LICENSE)