/// <summary> /// 创建节点资源 /// </summary> /// <param name="type"></param> private void CreateStoryNodeContent(StoryNode node) { StoryContent Content = AssetCreator <StoryContent> .CreateAsset(ConfigInfo.StoryContentFolder, node.name); if (Content != null) { node.Content = Content; Selection.activeObject = Content; } RefreshStoryNodeHeight(node); }
private void OnEnable() { Content = (StoryContent)target; }