public object ResolveReference(object context, string reference)
 {
     try
     {
         return(SODatabase.GetModel <DataNode>(reference));
     }
     catch (Exception)
     {
         return(null !);
     }
 }
コード例 #2
0
        private void Start()
        {
            SODatabase.Init(null, () =>
            {
                var model = SODatabase.GetModel <Example1DataNode>(Example1DataNode.Path);
                Debug.Log(model.Description);

                var models = SODatabase.GetModels <Example1DataNode2>(Example1DataNode2.Path);
                foreach (var model1 in models)
                {
                    Debug.Log(model1.Description2);
                }
            });
        }