Completed

To Assign SkinnedMeshRenderer by Code (without Getting Syntax Error)

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.

Skills: Unity 3D

See more: need thank you page for website and have to paste adwords code, need coder to design driver code, how to learn computer code, unity getblendshapeweight., unity get component skinned mesh renderer, getblendshapeweight, unity get blendshape count, skinnedmeshrenderer blendshape count, unity get mesh from skinnedmeshrenderer, unity blend shapes tutorial, unity get skinned mesh renderer, unity 3d, how long would it take roughly for a computer coder to write a code to extract information from 2300 documents, hire to translate php code, hire out a programmer to look at code, find a programmer to do html code in weebly, assign zip code, delete lines read file script, dantes inferno original script font, cifs server configuration error wrong authentication setup alfresco authenticator

About the Employer:
( 161 reviews ) SINGAPORE, Singapore

Project ID: #17091439

Awarded to:

Gw1p

Hello! I have looked at the documents you provided along with the description of the problem. I believe I am able to solve it for you quickly. Given my 3+ years of experience of working with Unity, 1.5 of which I have More

$50 USD in 1 day
(1 Review)
0.0

4 freelancers are bidding on average $92 for this job

OmniGames

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-ter More

$100 USD in 1 day
(4 Reviews)
0.0
Knighnja

Hi, I've taken a look at your code and I'm pretty I know the solution to reattach the skinnedmeshrenderer of the equipment to the bones of the player. I've dealt with skinnedMeshRenders, bones, boneweights, blendshapes More

$94 USD in 1 day
(0 Reviews)
0.0
vyas3108

Hi, I'd like to do this, but first I'd like to see the code, thanks Kumar ......................................................................................................................................... More

$122 USD in 1 day
(8 Reviews)
0.0