Skip to main content
Cleanup
Source Link
DMGregory
  • 141k
  • 23
  • 258
  • 401

Unity 3D - Modify a Script onscript at runtime

I am about to make a programming game for children, hence I will use blocks (like Scratch or Stencyl). My question is: Is there a way that you can modify a script (let's say, by adding a string attached to a code block)?

Also, could there by a way to delete just some text for that script (for when I want to "reset" the script to its default state)?

Thanks in advance.

Unity 3D - Modify a Script on runtime

I am about to make a programming game for children, hence I will use blocks (like Scratch or Stencyl). My question is: Is there a way that you can modify a script (let's say, by adding a string attached to a code block)?

Also, could there by a way to delete just some text for that script (for when I want to "reset" the script to its default state)?

Thanks in advance.

Modify a script at runtime

I am about to make a programming game for children, hence I will use blocks (like Scratch or Stencyl). My question is: Is there a way that you can modify a script (let's say, by adding a string attached to a code block)?

Also, could there by a way to delete just some text for that script (for when I want to "reset" the script to its default state)?

Source Link
LifGwaethrakindo
  • 1.4k
  • 2
  • 15
  • 27

Unity 3D - Modify a Script on runtime

I am about to make a programming game for children, hence I will use blocks (like Scratch or Stencyl). My question is: Is there a way that you can modify a script (let's say, by adding a string attached to a code block)?

Also, could there by a way to delete just some text for that script (for when I want to "reset" the script to its default state)?

Thanks in advance.