Find Jobs
Hire Freelancers

To Assign SkinnedMeshRenderer by Code (without Getting Syntax Error)

$30-250 USD

Em Andamento
Publicado há quase 6 anos

$30-250 USD

Pago na 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 do Projeto: 17091439

Sobre o projeto

2 propostas
Projeto remoto
Ativo há 6 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
2 freelancers estão ofertando em média $111 USD for esse trabalho
Avatar do Usuário
Hi, I'd like to do this, but first I'd like to see the code, thanks Kumar ..................................................................................................................................................................................................................
$122 USD em 1 dia
5,0 (10 avaliações)
4,9
4,9
Avatar do Usuário
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 em 1 dia
4,8 (6 avaliações)
4,1
4,1

Sobre o cliente

Bandeira do(a) SINGAPORE
SINGAPORE, Singapore
4,7
187
Método de pagamento verificado
Membro desde jul. 7, 2008

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos 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)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.