找回lib
This commit is contained in:
parent
3fb8e40dbd
commit
83a979deac
27
Assets/WebGLDownLoadWord/Plugins/WebGLDownloadFile.jslib
Normal file
27
Assets/WebGLDownLoadWord/Plugins/WebGLDownloadFile.jslib
Normal file
@ -0,0 +1,27 @@
|
||||
|
||||
mergeInto(LibraryManager.library, {
|
||||
WebGLDownloadWord : function(array,size,reportjson)
|
||||
{
|
||||
var reportdata= UTF8ToString(reportjson);
|
||||
var bytes = new Uint8Array(size);
|
||||
for (var i = 0; i < size; i++)
|
||||
{
|
||||
bytes[i] = HEAPU8[array + i];
|
||||
}
|
||||
|
||||
HtmlDownloadWord(bytes,reportdata);
|
||||
|
||||
},
|
||||
CopyToClipboard: function(text) {
|
||||
|
||||
var str = Pointer_stringify(text);
|
||||
|
||||
|
||||
if (navigator.clipboard) {
|
||||
navigator.clipboard.writeText(str).then(function() {
|
||||
}).catch(function(error) {
|
||||
});
|
||||
} else {
|
||||
}
|
||||
}
|
||||
});
|
||||
@ -0,0 +1,32 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3c5db0930befe7d419f28aed73f4dcd9
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
- first:
|
||||
WebGL: WebGL
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
x
Reference in New Issue
Block a user