コード例 #1
0
        private static void DumpCitizen(InstanceID instanceId)
        {
            var citizenId = instanceId.Citizen;

            if (citizenId == 0)
            {
                return;
            }

            var citizenInfo = CitizenManager.instance.m_instances.m_buffer[instanceId.GetCitizenInstanceId()].Info;

            if (citizenInfo != null)
            {
                var assetName = AssetDumpUtil.DumpGenericAsset(
                    citizenInfo.name,
                    citizenInfo.m_skinRenderer?.sharedMesh,
                    citizenInfo.m_skinRenderer?.material,
                    citizenInfo.m_lodMesh,
                    citizenInfo.m_lodMaterial);
                ShowAssetDumpModal(assetName);
            }
        }