https://github.com/steedalion/unity-fluent-builder
https://github.com/steedalion/unity-fluent-builder
unity unity3d upm-package
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/steedalion/unity-fluent-builder
- Owner: Steedalion
- Created: 2022-04-10T12:33:28.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-26T08:04:38.000Z (about 4 years ago)
- Last Synced: 2025-02-13T22:49:11.750Z (over 1 year ago)
- Topics: unity, unity3d, upm-package
- Language: C#
- Homepage:
- Size: 51.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Fluent Builder for Unity
A small unity library convenient for runtime tests.
String together the construction of a gameobject, its components and position.
`var go = A.go.With().Build();`
Mostly used for testing
```
[UnityTest]
public IEnumerator MulitAtAndWithA()
{
Gameobject gameobject = A.go
.With()
.With() //string together multiple components.
.At(Vector3.up)
.Build();
yield return null;
Assert.AreEqual(Vector3.up.y, go.transform.position.y, .01f);
}
```
Use unity package manager. Unity -> Packages -> Add package from git URL -> enter http url.