这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@sneakzttv
Copy link
Contributor

collections prefabs

collections prefabs
@sneakzttv
Copy link
Contributor Author

sneakzttv commented Mar 27, 2023

You can now add a collections id to any of the new prefabs to have the marketplace filter items for purchase/sale. closes #303

linter
whitespace
whitespace
Copy link
Contributor

@juans-chainsafe juans-chainsafe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I created a SampleScene with GetListedCollections and ListCollections prefabs:
Screenshot 2023-03-27 at 10 02 40

But on the Scene I don't see any buy button or any element at all because the C1, C2 and C3 inside BuyCanvas are hidden (I make them visible but not sure how to push those changes):
Screenshot 2023-03-27 at 10 04 13
Same is happening with ListCollections

Also, after I did the login, I see the message "Please set collection ID" on the console, but I set that collectionId in the cs file that I'm using:
Screenshot 2023-03-27 at 10 05 21

I tried as well removing the collectionId that I added but I don't get anything on the scene:
Screenshot 2023-03-27 at 10 12 08

All of this was tested with Web3Wallet

@sneakzttv
Copy link
Contributor Author

@juans-chainsafe set this collection id here and make sure the collection has nfts inside it
image

@juans-chainsafe
Copy link
Contributor

@juans-chainsafe set this collection id here and make sure the collection has nfts inside it image

yeep! I changed on the file instead of using Unity, my bad. Now I see the expected NFTs, I tested:

  • See list of listed NFTs on a Collection (Buy screen) ✅
  • Don't see NFTs that are not listed on a Collection (Buy screen) ✅
  • Try to Buy an NFT on a Collection that is not on my wallet ❌ (@sneakzttv I can't click the Buy or Sell button, maybe something on my end?)
  • Test all of this on WebGL (PENDING)

@sneakzttv
Copy link
Contributor Author

noice

@sneakzttv
Copy link
Contributor Author

did you run the login scene first? @juans-chainsafe

@juans-chainsafe
Copy link
Contributor

did you run the login scene first? @juans-chainsafe

yes, I just finish testing the WebGL build, looks good!
The only thing is the Buy and Sell buttons, I can't interact with those, I don't even get the message Debug.Log("Buying Nft"); on the console

Screenshot 2023-03-27 at 12 47 18

@sneakzttv
Copy link
Contributor Author

oh i see it, one moment

webgl fix
@juans-chainsafe
Copy link
Contributor

@sneakzttv I just tried again but the error that I have is happening on webgl and webwallet, so I can't click the button
Screenshot 2023-03-27 at 13 26 29

Do you manage to click it? or maybe sent me a video or the collectionId that you are using

@sneakzttv
Copy link
Contributor Author

image

@sneakzttv
Copy link
Contributor Author

make sure you've:
imported the newest push
saved server settings
logged in using the scene

@juans-chainsafe
Copy link
Contributor

make sure you've: imported the newest push saved server settings logged in using the scene

yep! all of that looks good, I also tried creating a new project in Unity, but is the same issue, here is a video:
https://user-images.githubusercontent.com/104365141/228040233-a9185f9e-8f5c-4d64-a8fe-7be55ed283f9.mov

Copy link
Contributor

@juans-chainsafe juans-chainsafe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous issues were fixed, all working correctly now in WebGL and WebWallet.
I was able to list a NFT that is in the collection and Buy an NFT from another collection.

@juans-chainsafe juans-chainsafe merged commit 7639df5 into main Mar 28, 2023
@juans-chainsafe juans-chainsafe deleted the collections-prefab branch March 28, 2023 17:50
sergeypanin1994 pushed a commit to sergeypanin1994/web3.unity that referenced this pull request Mar 16, 2025
* collections prefabs

collections prefabs

* linter

linter

* whitespace

whitespace

* whitespace

whitespace

* Update sdk_core_ethers.dll

* webgl fix

webgl fix

* prefabs

prefabs

* Update index.html

* decimals update

decimals update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants