public static void PopulateMaxAttenuation() { if (populateSoundBank) { AkWwiseXMLBuilder.Populate(); populateSoundBank = false; UnityEditor.SceneView.RepaintAll(); } }
public static void PopulateForMigration() { GetData().Reset(); var bDirty = AkWwiseWWUBuilder.Populate(); bDirty |= AkWwiseXMLBuilder.Populate(); if (bDirty) { UnityEditor.EditorUtility.SetDirty(GetData()); } }
public static void Populate() { AkWwiseWWUBuilder.Populate(); AkWwiseXMLBuilder.Populate(); if (AkWwisePicker.WwiseProjectFound) { EditorUtility.SetDirty(AkWwiseProjectInfo.GetData()); } }
public static bool Populate() { var wwuBuilderChanged = AkWwiseWWUBuilder.Populate(); var xmlBuilderChanged = AkWwiseXMLBuilder.Populate(); if (wwuBuilderChanged || xmlBuilderChanged) { UnityEditor.EditorUtility.SetDirty(GetData()); return(true); } return(false); }
public static bool Populate() { bool bDirty = false; if (AkWwisePicker.WwiseProjectFound) { bDirty = AkWwiseWWUBuilder.Populate(); bDirty |= AkWwiseXMLBuilder.Populate(); if (bDirty) { EditorUtility.SetDirty(AkWwiseProjectInfo.GetData()); } } return(bDirty); }
void onEditorUpdate() { if (fireEvent) { AkWwiseXMLBuilder.Populate(); var callback = XMLUpdated; if (callback != null) { callback(); } fireEvent = false; } }
public static bool Populate() { var bDirty = false; if (AkUtilities.IsWwiseProjectAvailable) { bDirty = AkWwiseWWUBuilder.Populate(); bDirty |= AkWwiseXMLBuilder.Populate(); if (bDirty) { UnityEditor.EditorUtility.SetDirty(GetData()); } } return(bDirty); }
private static void Tick() { isTicking = true; if (AkWwiseProjectInfo.GetData() != null) { if (System.DateTime.Now.Subtract(s_lastFileCheck).Seconds > s_SecondsBetweenChecks && !UnityEditor.EditorApplication.isCompiling && !UnityEditor.EditorApplication.isPlayingOrWillChangePlaymode && AkWwiseProjectInfo.GetData().autoPopulateEnabled) { AkWwisePicker.treeView.SaveExpansionStatus(); if (Populate()) { AkWwiseXMLBuilder.Populate(); AkWwisePicker.PopulateTreeview(); //Make sure that the Wwise picker and the inspector are updated AkUtilities.RepaintInspector(); } s_lastFileCheck = System.DateTime.Now; } } }