An open API service indexing awesome lists of open source software.

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

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.