Chp 5 – Getting the NPC's talking

Home Forums Books Mastering Unity 2D Game Development Chp 5 – Getting the NPC's talking

This topic contains 2 replies, has 2 voices, and was last updated by  Wilber 3 years, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #5743


    Under the section “Saving and serializing the object for later”, I’m no able to create a New Conversation Asset.  Actually, the “Conversation” option is not coming up when I click on Create in the Project menu.  What am I doing wrong?  I noticed the error message in the C# script file “ConversationAssetCreator.cs” stating, “CustomerAssetUtility does not exist in the current content”.  Is it all related?  Please help.



    using UnityEngine;

    using UnityEditor;


    public class ConversationAssetCreator : MonoBehaviour




    public static void CreateAsset()




    Hi there Wilber, sorry to hear your having troubles.

    First simple question, did you create the ConversationAssetCreator script in the special “Editor” folder?

    As it is using editor functionality it needs to be placed in the “Assets\Scripts\Editor” folder


    Additionally, have you used / imported the CustomAssetUtility script in to the same folder? That section refers to the PositionManager example from page 155.  and states you can either reuse the code from Page 155 (and updating it for the Conversation object) , or use the updated version I supply with the sample code.


    Hope that helps

    Simon (Darkside) Jackson



    Thanks Simon.  I didn’t have the “CustomAssetUtility” script in the “Editor” folder.  Also, I replaced the other 2 scripts (ConversationAssetCreator, PositionManager) with the one you provided in the sample code – I was getting another error too.  But is working now.  Thanks!



Viewing 3 posts - 1 through 3 (of 3 total)

The forum ‘Mastering Unity 2D Game Development’ is closed to new topics and replies.