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.
public class ConversationAssetCreator : MonoBehaviour
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.
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.