private static bool ValidateMenuLoadTimeline()
                {
                    TextAsset asset = Selection.activeObject as TextAsset;

                    if (asset != null)
                    {
                        return(SerializeConverter.DoesAssetContainObject <NodeGraph>(asset));
                    }

                    return(false);
                }
Example #2
0
                private static bool ValidateMenuLoadTimeline()
                {
                    TextAsset asset = Selection.activeObject as TextAsset;

                    if (asset != null && !asset.name.StartsWith("TextConv"))
                    {
                        return(SerializeConverter.DoesAssetContainObject <TimelineStateMachine>(asset));
                    }

                    return(false);
                }