added note about how to JS
This commit is contained in:
parent
bda3fd3b37
commit
82b5852625
@ -132,6 +132,13 @@ public class RT3script : MonoBehaviour
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
// inverse in javascript of this:
|
||||||
|
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setUint32
|
||||||
|
// // Create an ArrayBuffer with 32bits (4 bytes)
|
||||||
|
// const buffer = new ArrayBuffer(4);
|
||||||
|
// const view = new DataView(buffer);
|
||||||
|
// view.setUint32(0, 1057279852); // Max unsigned 32-bit integer
|
||||||
|
// console.log(view.getFloat32(0));
|
||||||
|
|
||||||
// Based on this: https://stackoverflow.com/a/16822144
|
// Based on this: https://stackoverflow.com/a/16822144
|
||||||
[StructLayout(LayoutKind.Explicit)]
|
[StructLayout(LayoutKind.Explicit)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user