Skip to content

Commit 57c1de6

Browse files
authored
Rename builders / add BlobAsset (#6)
* rename builder and add `BlobAsset` * Update README.md * update builder description. * update version
1 parent 6e10149 commit 57c1de6

22 files changed

+463
-352
lines changed

Assets/Example.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@
66

77
public class Example : MonoBehaviour
88
{
9-
public SerializedBuilder<ExampleBlob> Blob;
9+
public BlobAsset<ExampleBlob> Blob;
1010

1111
private void Awake()
1212
{
13-
BlobAssetReference<ExampleBlob> blob = Blob.Create();
14-
// use blob
13+
// get `BlobAssetReference` from `BlobAsset`
14+
BlobAssetReference<ExampleBlob> blob = Blob.Reference;
15+
// or use blob value directly
16+
var _ = Blob.Value.Float3;
1517
}
1618
}
1719

0 commit comments

Comments
 (0)