Unity WebGL에서 주소 표시줄 데이터를 가져오고 페이지를 닫는 방법

1. Plugins/WebGL아래에서MyPlugin.jslib

파일의 내용은 다음과 같습니다.

var MyPlugin = {
   
    
    
	StringReturnValueFunction: function () {
   
    
    
		var returnStr = window.top.location.href;
		var bufferSize = lengthBytesUTF8(returnStr) + 1;
		var buffer = _malloc(bufferSize);
		stringToUTF8(returnStr

おすすめ

転載: blog.csdn.net/weixin_38359813/article/details/130842000