Custom Grid Material

Update 1.2

After a while without updating this, I saw the plugin at my toolbar and decided to see if I could update anything. Also tried to add some new features but I didn’t have enough time so they are work in progress.

Changes
  • Some micro-optimizations related to Color3, Instance…

  • Changed the way textures are created:

    • OId way:
      local GridsTable = {
         Front = Instance.new("Texture", Part),
         Back = Instance.new("Texture", Part),
         Bottom = Instance.new("Texture", Part),
         Top = Instance.new("Texture", Part),
         Right = Instance.new("Texture", Part),
         Left = Instance.new("Texture", Part)
      };
      
      for Surface, Grid in pairs(GridsTable) do
         -- Setting up grid properties
      end
      
    • New way:
      local GridsTable = {
         Front = InstanceLibrary.new("Texture"),
         Back = InstanceLibrary.new("Texture"),
         Bottom = InstanceLibrary.new("Texture"),
         Top = InstanceLibrary.new("Texture"),
         Right = InstanceLibrary.new("Texture"),
         Left = InstanceLibrary.new("Texture")
      };
      
      for Surface, Grid in pairs(GridsTable) do
         -- Setting up grid properties
      
         Grid.Parent = Part
      end
      

    If you want to know how does this influence on performance, check this post made by zeuxcg:

    PSA: Don't use Instance.new() with parent argument

  • Reduced the quantity of :WaitForChild() used by the plugin.

  • Now, when Roblox Studio gets started, the plugin will wait some seconds before loading all variables to prevent it from setting up values before studio loaded. Not 100% sure that It will always help, but maybe will help in some situations.

  • [WIP] Custom Plugin UI, as a frequent user of my own plugin, I understand that always having a folder in ServerStorage that is needed for the plugin to work, is not very good. That’s why I’m still looking to make a plugin ui so you can easily modify values without having to use a folder.

    In the last week I’ve been working on UIs for other projects and comissions, and I learned some really cool things that I will apply to the plugin as soon as I can.

    image (1)

  • [WIP] Surface filtering is something that I really want to do, since sometimes I only need to create textures for the top or the front of my parts and It’s a little bit of a mess having to delete the rest of the textures.


That’s all for now, if you’ve got the plugin installed make sure to update it!

2 Likes