private static SceneObjectIdentifier CreateObjectID(IExportContainer container, Object asset) { long lid = asset == null ? 0 : container.GetExportID(asset); SceneObjectIdentifier soId = new SceneObjectIdentifier(lid, 0); return(soId); }
private static SceneObjectIdentifier CreateObjectID(IExportContainer container, Object asset) { string id = container.GetExportID(asset); long lid = long.Parse(id); SceneObjectIdentifier soId = new SceneObjectIdentifier(lid, 0); return(soId); }
private static SceneObjectIdentifier CreateObjectID(IExportContainer container, Object asset) { long lid = 0; if (asset != null) { lid = (long)container.GetExportID(asset); } SceneObjectIdentifier soId = new SceneObjectIdentifier(lid, 0); return(soId); }
public YAMLDocument ExportYAMLDocument(IExportContainer container) { YAMLDocument document = new YAMLDocument(); YAMLMappingNode root = document.CreateMappingRoot(); root.Tag = ClassID.ToInt().ToString(); root.Anchor = container.GetExportID(this).ToString(); YAMLMappingNode node = ExportYAMLRoot(container); root.Add(container.ExportLayout.ClassNames[ClassID], node); return(document); }
protected override void ExportYAMLPreInner(IExportContainer container, YAMLMappingNode node) { base.ExportYAMLPreInner(container, node); YAMLMappingNode fileNode = YAMLMappingNode.Empty; if (m_sprites.Count > 0) { fileNode = new YAMLMappingNode(); foreach (Sprite sprite in m_sprites.Keys) { long exportID = container.GetExportID(sprite); fileNode.Add(exportID, sprite.Name); } } node.Add("fileIDToRecycleName", fileNode); }
protected override void ExportYAMLInner(IExportContainer container, YAMLMappingNode node) { node.Add("mainObjectFileID", container.GetExportID(m_mainObject)); }
private static SceneObjectIdentifier CreateObjectID(IExportContainer container, Object asset) { long lid = (long)container.GetExportID(asset); return(new SceneObjectIdentifier(lid, 0)); }
protected override string GetPathIDString(IExportContainer container) { return(container.GetExportID(m_prefab)); }