Sedras's picture
How do i introduce this code in unity ?
9b9ed61 verified
Raw History Blame Contribute Delete
7.86 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Unity Boy Character Generator</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
</head>
<body class="bg-gray-100 min-h-screen">
<custom-navbar></custom-navbar>
<main class="container mx-auto px-4 py-8">
<div class="max-w-4xl mx-auto bg-white rounded-xl shadow-md overflow-hidden">
<div class="md:flex">
<div class="md:w-1/2 p-8">
<h1 class="text-3xl font-bold text-gray-800 mb-6">Unity 3D Boy Character</h1>
<p class="text-gray-600 mb-6">Customize your brown-haired boy character for Unity projects with these settings:</p>
<div class="space-y-4">
<div>
<label class="block text-gray-700 font-medium mb-2">Hair Color</label>
<div class="flex items-center space-x-4">
<div class="w-10 h-10 rounded-full bg-amber-700 border-2 border-amber-900 cursor-pointer" title="Brown"></div>
<div class="w-10 h-10 rounded-full bg-amber-800 border-2 border-gray-300 cursor-pointer" title="Dark Brown"></div>
<div class="w-10 h-10 rounded-full bg-amber-600 border-2 border-gray-300 cursor-pointer" title="Light Brown"></div>
</div>
</div>
<div>
<label class="block text-gray-700 font-medium mb-2">Clothing Style</label>
<select class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-amber-500 focus:border-transparent">
<option>Casual</option>
<option>School Uniform</option>
<option>Sports</option>
<option>Fantasy</option>
</select>
</div>
<div>
<label class="block text-gray-700 font-medium mb-2">Accessories</label>
<div class="flex flex-wrap gap-2">
<button class="px-3 py-1 bg-gray-200 rounded-full text-sm">Glasses</button>
<button class="px-3 py-1 bg-gray-200 rounded-full text-sm">Hat</button>
<button class="px-3 py-1 bg-gray-200 rounded-full text-sm">Backpack</button>
<button class="px-3 py-1 bg-gray-200 rounded-full text-sm">Watch</button>
</div>
</div>
</div>
<div class="mt-6 space-y-4">
<button class="w-full px-6 py-3 bg-amber-600 text-white font-medium rounded-lg hover:bg-amber-700 transition duration-300">
Generate Unity Package
</button>
<div class="bg-gray-100 p-4 rounded-lg">
<h3 class="font-medium text-gray-800 mb-2">Unity Import Guide</h3>
<ol class="list-decimal list-inside text-sm text-gray-600 space-y-1">
<li>Download the generated .unitypackage file</li>
<li>Open your Unity project</li>
<li>Go to Assets > Import Package > Custom Package</li>
<li>Select the downloaded file</li>
<li>Click "Import" and wait for completion</li>
<li>Find your character in the Project window under "Characters"</li>
</ol>
</div>
</div>
</div>
<div class="md:w-1/2 bg-gray-50 flex items-center justify-center p-8">
<div class="relative w-64 h-64 bg-gray-200 rounded-lg overflow-hidden">
<div class="absolute inset-0 flex items-center justify-center">
<div class="relative">
<!-- Character preview would be here -->
<div class="w-32 h-40 bg-amber-700 rounded-t-full mx-auto mb-1"></div>
<div class="w-24 h-32 bg-blue-500 rounded mx-auto"></div>
</div>
</div>
<div class="absolute bottom-4 left-0 right-0 text-center text-sm text-gray-500">
Character Preview
</div>
</div>
</div>
</div>
</div>
<div class="mt-8 max-w-4xl mx-auto grid md:grid-cols-2 gap-6">
<div class="bg-white rounded-xl shadow-md p-6">
<h2 class="text-xl font-semibold text-gray-800 mb-4">Export Options</h2>
<div class="space-y-4">
<div class="flex items-center">
<input type="checkbox" id="fbx" class="h-4 w-4 text-amber-600 focus:ring-amber-500 border-gray-300 rounded">
<label for="fbx" class="ml-2 block text-gray-700">FBX Format</label>
</div>
<div class="flex items-center">
<input type="checkbox" id="unitypackage" class="h-4 w-4 text-amber-600 focus:ring-amber-500 border-gray-300 rounded" checked>
<label for="unitypackage" class="ml-2 block text-gray-700">Unity Package</label>
</div>
<div class="flex items-center">
<input type="checkbox" id="animations" class="h-4 w-4 text-amber-600 focus:ring-amber-500 border-gray-300 rounded">
<label for="animations" class="ml-2 block text-gray-700">Include Basic Animations</label>
</div>
</div>
</div>
<div class="bg-white rounded-xl shadow-md p-6">
<h2 class="text-xl font-semibold text-gray-800 mb-4">Documentation</h2>
<ul class="space-y-2 text-gray-600">
<li class="flex items-start">
<i data-feather="file-text" class="w-4 h-4 mt-1 mr-2 text-amber-600"></i>
<span>Character rigging documentation</span>
</li>
<li class="flex items-start">
<i data-feather="video" class="w-4 h-4 mt-1 mr-2 text-amber-600"></i>
<span>Importing tutorial</span>
</li>
<li class="flex items-start">
<i data-feather="code" class="w-4 h-4 mt-1 mr-2 text-amber-600"></i>
<span>Sample scripts</span>
</li>
</ul>
</div>
</div>
</main>
<div class="max-w-4xl mx-auto mt-8">
<unity-tips></unity-tips>
</div>
<custom-footer></custom-footer>
<script src="components/navbar.js"></script>
<script src="components/footer.js"></script>
<script src="components/unity-tips.js"></script>
<script src="script.js"></script>
<script>
feather.replace();
</script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>