//---------------------------------------------------------------------------------------------------------------------- private static void InitializeAssetFromDefaultAsset(StreamingImageSequencePlayableAsset playableAsset, UnityEditor.DefaultAsset timelineDefaultAsset) { string path = AssetDatabase.GetAssetPath(timelineDefaultAsset).Replace("\\", "/"); const bool ASK_TO_COPY = false; ImageSequenceImporter.ImportImages(path, playableAsset, ASK_TO_COPY); }
private static void RegisterFilesAndCreateStreamingImageSequence() { string path = EditorUtility.OpenFilePanel("Open File", "", PNG_EXTENSION + "," + TGA_EXTENSION); if (string.IsNullOrEmpty(path)) { return; } ImageSequenceImporter.ImportImages(path, null); }
//---------------------------------------------------------------------------------------------------------------------- private void ImportImages(string path) { ImageSequenceImporter.ImportImages(path, m_asset); m_isImageListDirty = true; }