コード例 #1
0
                private static bool ValidateMenuLoadTimeline()
                {
                    TextAsset asset = Selection.activeObject as TextAsset;

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

                    return(false);
                }
コード例 #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);
                }