Защита ваших данных паролем
In order to protect your source code and content, you are recommended to use the Archiver tool to archive your resources into UNG archives. It implements data encrypting to avoid unauthorized access and provides a password protection. Чтобы защитить исходный код и контент, рекомендуется использовать инструмент Archiver для архивирования ваших ресурсов в архивы UNG. Он реализует шифрование данных, чтобы избежать несанкционированного доступа, и обеспечивает защиту паролем.
To protect resources, you need to create an archive with the password specified and pass the same password on engine initialization. The workflow is as follows: Для защиты ресурсов вам необходимо создать архив с указанным паролем и передать тот же пароль при инициализации движка. Рабочий процесс выглядит следующим образом:
- Create an UNG archive with the specified password. For example, to create an archive named files.ung with the 12345 password that contains the textures directory, pass the following CLI:
Shell-командыСоздайте архив UNG с указанным паролем. Например, чтобы создать архив с именем files.ung с паролем 12345 , который содержит каталог textures, передайте следующий интерфейс командной строки:
ung_x86 -o files.ung -d textures -p 12345
Shell-командыung_x86 -o files.ung -d textures -p 12345
- Specify the same password to be passed on engine initialization in the <your_project_name>.cpp file:
Исходный код (C#)
// ... [STAThread] static void Main(string[] args) { Engine.InitParameters init_params = new Engine.InitParameters(); init_params.window_title = "Your_Title"; init_params.project = "<your_project_name>"; init_params.password = "12345"; Engine.Init(init_params, args); AppSystemLogic system_logic = new AppSystemLogic(); AppWorldLogic world_logic = new AppWorldLogic(); AppEditorLogic editor_logic = new AppEditorLogic(); Engine.Main(system_logic, world_logic, editor_logic); // shutdown engine Engine.Shutdown(); }
ПримечаниеIf you pass a project name during engine initialization, this means the engine will store its rewritable data (such as logs, cache and configuration files) in user profile (in C:\Users\<username> on Windows or in /home/<username> on Linux) rather than <UnigineSDK/bin/ or <UnigineSDK/data/ folders. If you pass a project name during engine initialization, this means the engine will store its rewritable data (such as logs, cache and configuration files) in user profile (in C:\Users\<username> on Windows or in /home/<username> on Linux) rather than <UnigineSDK/bin/ or <UnigineSDK/data/ folders.On engine initialization, you can set null to the project attribute of initialization parameters, if you don't need that data is stored in user profile:On engine initialization, you can set null to the project attribute of initialization parameters, if you don't need that data is stored in user profile:
Исходный код (C#)If you pass a project name during engine initialization, this means the engine will store its rewritable data (such as logs, cache and configuration files) in user profile (in C:\Users\<username> on Windows or in /home/<username> on Linux) rather than <UnigineSDK/bin/ or <UnigineSDK/data/ folders. On engine initialization, you can set null to the project attribute of initialization parameters, if you don't need that data is stored in user profile:Укажите тот же пароль, который будет передаваться при инициализации движка в файле <your_project_name>.cpp:// engine initialization Engine.InitParameters init_params = new Engine.InitParameters(); init_params.project = null; init_params.password = "12345"; Engine.Init(init_params, args);
Исходный код (C#)// ... [STAThread] static void Main(string[] args) { Engine.InitParameters init_params = new Engine.InitParameters(); init_params.window_title = "Your_Title"; init_params.project = "<your_project_name>"; init_params.password = "12345"; Engine.Init(init_params, args); AppSystemLogic system_logic = new AppSystemLogic(); AppWorldLogic world_logic = new AppWorldLogic(); AppEditorLogic editor_logic = new AppEditorLogic(); Engine.Main(system_logic, world_logic, editor_logic); // shutdown engine Engine.Shutdown(); }
ПримечаниеIf you pass a project name during engine initialization, this means the engine will store its rewritable data (such as logs, cache and configuration files) in user profile (in C:\Users\<username> on Windows or in /home/<username> on Linux) rather than <UnigineSDK/bin/ or <UnigineSDK/data/ folders. Если вы передадите имя проекта во время инициализации движка, это означает, что движок сохранит свои перезаписываемые данные (такие как журналы, кеш и файлы конфигурации) в профиле пользователя ( в C:\Users\<username> в Windows или в /home/<username> в Linux), а не в папках <UnigineSDK/bin/ или <UnigineSDK/data/.On engine initialization, you can set null to the project attribute of initialization parameters, if you don't need that data is stored in user profile:При инициализации движка вы можете null в атрибут project параметров инициализации, если вам не нужно, чтобы данные сохранялись в профиле пользователя:
Исходный код (C#)// engine initialization Engine.InitParameters init_params = new Engine.InitParameters(); init_params.project = null; init_params.password = "12345"; Engine.Init(init_params, args);
Информация, представленная на данной странице, актуальна для версии UNIGINE 2.19.1 SDK.