Answers is deprecated.

Please use Forum to participate in community by asking and answering questions!

Staff is as follows ... I started in PlayCanvas a few days ago and I'm trying to make a simple texture change in my object ... 2d same animation type .. but I'm not able to make it work ... could you help me please? I would like to do something very simple even to understand. I'm having a hard time.

asked 15 Feb, 16:18

fgb01's gravatar image

accept rate: 0%

edited 15 Feb, 17:05

Hello, in the old script system this was the command to change an entity texture this.entity.findByName('Model').model.model.meshInstances[0].material = context.assets.find('new name of material','material').resources[0]; i think this will need to be changed slightly to work


answered 22 Feb, 07:47

ayrin's gravatar image

accept rate: 29%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 15 Feb, 16:18

Seen: 662 times

Last updated: 22 Feb, 07:47

about | privacy | support | contact