コード例 #1
0
        /// <summary>
        /// Create a new script featuring the new enum.
        /// </summary>
        public void CreateProxy(PlayMakerEventProxyCreatorDefinition definition)
        {
            BuildScriptLiteral(definition);

            definition.UpdateFilePath();

            // Ensure that this path actually exists.
            if (!Directory.Exists(definition.directoryPath))
            {
                Directory.CreateDirectory(definition.directoryPath);
            }

            File.WriteAllText(definition.filePath, definition.ScriptLiteral);

            AssetDatabase.Refresh();
        }
コード例 #2
0
		/// <summary>
		/// Create a new script featuring the new enum.
		/// </summary>
		public void CreateProxy(PlayMakerEventProxyCreatorDefinition definition)
		{
			BuildScriptLiteral(definition);
			
			definition.UpdateFilePath();
			
			// Ensure that this path actually exists.
			if (!Directory.Exists(definition.directoryPath))
				Directory.CreateDirectory(definition.directoryPath);
			
			File.WriteAllText(definition.filePath, definition.ScriptLiteral);
			
			AssetDatabase.Refresh();
		}