소스 검색

Merge pull request #48583 from Calinou/doc-os-get-unique-id-caveats

Document caveats of `OS.get_unique_id()`
Rémi Verschelde 4 년 전
부모
커밋
009674e5d5
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      doc/classes/OS.xml

+ 1 - 0
doc/classes/OS.xml

@@ -348,6 +348,7 @@
 			</return>
 			<description>
 				Returns a string that is unique to the device.
+				[b]Note:[/b] This string may change without notice if the user reinstalls/upgrades their operating system or changes their hardware. This means it should generally not be used to encrypt persistent data as the data saved prior to an unexpected ID change would become inaccessible. The returned string may also be falsified using external programs, so do not rely on the string returned by [method get_unique_id] for security purposes.
 				[b]Note:[/b] Returns an empty string on HTML5 and UWP, as this method isn't implemented on those platforms yet.
 			</description>
 		</method>