//----------------------------------------------------------------------------------------------------------------------

        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);
        }
Exemple #2
0
        private static void RegisterFilesAndCreateStreamingImageSequence()
        {
            string path = EditorUtility.OpenFilePanel("Open File", "", PNG_EXTENSION + "," + TGA_EXTENSION);

            if (string.IsNullOrEmpty(path))
            {
                return;
            }

            ImageSequenceImporter.ImportImages(path, null);
        }
Exemple #3
0
//----------------------------------------------------------------------------------------------------------------------
    private void ImportImages(string path) {
        ImageSequenceImporter.ImportImages(path, m_asset);
        m_isImageListDirty = true;
    }