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

fgb01
0112
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

link

answered 22 Feb, 07:47

ayrin's gravatar image

ayrin
167434449
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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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

Tags:

×17
×9
×2
×1

Asked: 15 Feb, 16:18

Seen: 662 times

Last updated: 22 Feb, 07:47

about | privacy | support | contact

playcanvas