File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ Reads the binary string data and returns an instantiated entity.
96
96
``` ts
97
97
import { Entity } from ' att-string-transcoder' ;
98
98
99
- const torchFireEntity = Entity .fromBinary <' Torch' >(myBinaryString );
99
+ const torchFireEntity = Entity .fromBinary <' Torch' >(binaryReader , { key , hash } );
100
100
```
101
101
102
102
## Properties
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ export class Entity<TPrefabName extends ATTPrefabName> {
171
171
* @example
172
172
* import { Entity } from 'att-string-transcoder';
173
173
*
174
- * const torchFireEntity = Entity.fromBinary<'Torch'>(myBinaryString );
174
+ * const torchFireEntity = Entity.fromBinary<'Torch'>(binaryReader, { key, hash } );
175
175
*/
176
176
static fromBinary < TPrefabName extends ATTPrefabName > (
177
177
reader : BinaryReader ,
You can’t perform that action at this time.
0 commit comments