Custom Character Metadata

Using Naninovel C# APIs: adding custom actor implementations or commands, overriding engine services, integrating with other systems, etc.
Post Reply
maso
Posts: 1
Joined: 07 Nov 2020 11:46

Custom Character Metadata

Post by maso »

I'm not sure if I'm missing something really simple, but I was just messing with some of the examples for Custom Character Metadata, but I can't get it to work. I basically copied the example:-

Code: Select all

using Naninovel;
using UnityEngine;

public class MyCharacterData : CustomMetadata<SpriteActor>
{
    public int MyCustomInt;
    [Range(0f, 100f), Tooltip("Tooltip for my custom range.")]
    public float MyCustomRange = 50f;
    [ColorUsage(false, true)]
    public Color MyCustomColor = Color.white;
}

CS0246: The type or namespace name 'CustomMetadata<>' could not be found (are you missing a using directive or an assembly reference?

I can't find any reference to CustomMetadata anywhere, I thought maybe it was a error in the example, but later on there is something else with the same inheritance?

Elringus
admin
Posts: 521
Joined: 11 May 2020 18:03

Re: Custom Character Metadata

Post by Elringus »

Make sure you're using the latest version of Naninovel package.

Post Reply