Find Jobs
Hire Freelancers

To Assign SkinnedMeshRenderer by Code (without Getting Syntax Error)

$30-250 USD

En curso
Publicado hace casi 6 años

$30-250 USD

Pagado a la entrega
Currently, SkinnedMeshRenderer on a player is assigned manually on the Inspector (if you know Unity 3D well), in replacing the prop or clothes he is [login to view URL] it is working, proven from my PC! On the attachments below, I would like to assign that by way of code, but getting syntax errors. Something wrong about the lines below. Attachments illustrated of original script Not sure why you can't pinpoint to the Cube object on the Player 1 without getting an error: ------------------- targetMesh = [login to view URL]("Player 1").[login to view URL]("Cube").gameObject; ------------------- , and then change the clothes it is wearing. Codes: public SkinnedMeshRenderer targetMesh; GameObject target; . . . public void Equip(Equipment newItem) { . . . [login to view URL] = [login to view URL]; . . . } void Update() { if ([login to view URL]("Player 1") != null) { /* Player */ targetMesh = [login to view URL]("Player 1").[login to view URL]("Cube").gameObject; // [login to view URL]("targetMesh gameObject is " + targetMesh); } Actual script, a 1-page C# file, is attached for reference.
ID del proyecto: 17091439

Información sobre el proyecto

2 propuestas
Proyecto remoto
Activo hace 6 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
2 freelancers están ofertando un promedio de $111 USD por este trabajo
Avatar del usuario
Hi, I'd like to do this, but first I'd like to see the code, thanks Kumar ..................................................................................................................................................................................................................
$122 USD en 1 día
5,0 (10 comentarios)
4,9
4,9
Avatar del usuario
Hey there Our studio has done a lot of games using Unity3D as you can see from our profile, we would love to talk more about the project and start working on it. Whether you're looking for a quick job or long-term commitment we're happy to help. Hope to hear from you soon. Omni Team
$100 USD en 1 día
4,8 (6 comentarios)
4,1
4,1

Sobre este cliente

Bandera de SINGAPORE
SINGAPORE, Singapore
4,7
187
Forma de pago verificada
Miembro desde jul 7, 2008

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.