Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 1.28 KB

File metadata and controls

19 lines (17 loc) · 1.28 KB

WCFConfigObject.TryGetSprite(Module, Sprite) Method

If a module has a Sprite associated with it, you can use this method to try and get it. Depending on the type of Module, there may not be any Sprite available.

public abstract bool TryGetSprite(BrewedInk.WFC.Module module, out UnityEngine.Sprite sprite);

Parameters

module Module
The module you'd like to get a sprite for.

sprite UnityEngine.Sprite
The Sprite associated with the given module. The sprite will be null if there is no associated Sprite for the module.

Returns

System.Boolean
True if there is any sprite associated with the module, false otherwise. If the method returns false, you can expect the sprite to be null.