Skip to content

Открытый апи ключ. Необходимо скрыть #1

@Torusaynim

Description

@Torusaynim

Выносите ключ в отдельный json файл, который будет в gitignore

Assets/Scripts/MyAstraController.cs

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MyAstraController : AstraController {

    private void Awake()
    {
        Screen.SetResolution(720, 1280, true);

        //Initilialize the camera
        AstraUnityContext.Instance.Initialize();

        //Set the new license key 
        //Key received on 06/12/2019
        string licenseString = "КЛЮЧ";
        Astra.BodyTracking.SetLicense(licenseString);
    }

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions