Example #1
0
        public static void Generate()
        {
            FPLut.GenerateTables(PathUtils.Combine(Application.dataPath, "Quantum", "Resources", "LUT"));

            // this makes sure the tables are loaded into unity
            AssetDatabase.Refresh();
        }
Example #2
0
        public static void Generate()
        {
            var sep = System.IO.Path.DirectorySeparatorChar;

            FPLut.GenerateTables(Application.dataPath + sep + "Quantum" + sep + "Resources" + sep + "LUT");

            // this makes sure the tables are loaded into unity
            AssetDatabase.Refresh();
        }
Example #3
0
    public static void LoadLookupTables(Boolean force = false)
    {
        if (FPLut.IsLoaded && force == false)
        {
            return;
        }

        FPLut.Init(file => UnityEngine.Resources.Load <TextAsset>("LUT/" + file).bytes);
    }
Example #4
0
  public static void Init(Boolean force = false) {
    // load lookup table
    FPLut.Init(file => UnityEngine.Resources.Load<TextAsset>("LUT/" + file).bytes);

    // init photon logger
    Photon.Deterministic.DeterministicLog.Init(
      UnityEngine.Debug.Log,
      UnityEngine.Debug.LogWarning,
      UnityEngine.Debug.LogError,
      UnityEngine.Debug.LogException
    );
  }