Method and system for obtaining Unity 3D resource reference relationship
The technical scheme of the invention comprises a method and a system for obtaining a Unity 3D resource reference relationship. The method and the system are used for obtaining a hash value of a specified resource file and direct dependence of the resource file and other resource files according to...
Saved in:
Main Authors | , , |
---|---|
Format | Patent |
Language | Chinese English |
Published |
28.04.2020
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | The technical scheme of the invention comprises a method and a system for obtaining a Unity 3D resource reference relationship. The method and the system are used for obtaining a hash value of a specified resource file and direct dependence of the resource file and other resource files according to an interface provided by an engine system and calculating recursive dependence; storing the dependency relationship and the hash value of resources as a readable file; and comparing the updated hash value of the resource file with the hash value of the corresponding resource file, if the hash valuesare consistent, determining that the resource cache is valid and the dependency relationship is unchanged, and if the hash values are inconsistent, re-acquiring the dependency relationship of the resources, and updating the dependency relationship to the readable file. The invention has the beneficial effects that the problem of relatively long consumed time caused by repeatedly calling an interface provided by Unity 3D |
---|---|
Bibliography: | Application Number: CN201911063866 |