Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • Feature Requests /
avatar image

me@mikevanriel.com suggested an idea · Jun 12, 2016 at 01:13 PM · CloudScript

Edit CloudScript in Unity

It would be awesome if it were possible to edit your CloudScripts in the Unity editor and manage their deployment from an inspector. If CloudScripts were also part of the Assets folder then it can even be version controlled using Unity Collaborate or another VCS.

thub.nodes.view.add-new-comment
Pixel Cream

People who like this

1 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 comment

· Add your reply
avatar image

Joshua Strunk commented · Jun 28, 2016 at 02:50 PM

Could you clarify what you mean but "edit in the Unity editor". Cloud Script is after all JavaScript and can/should be edited in any good Text Editor. (Sublime, Atom, Notepad++, VS?)

Store Cloud Scripts under /Assets

You might already be able to store Cloud Script files under /Assets. First you need to ensure they are under a folder/dir that starts its name with . (dot). This lets Unity ignore it from builds. I would also put that folder under Editor for good measure. This tells Unity it is only needed in Editor, might not be needed with the (dot) folder name. You will probably have to configure whatever VCS you use to get the hidden folder.

Push Cloud Script from inspector

You can already set this up by using the Admin API (I would get second opinion from PlayFab source but as long as you only set/use Secret Key in script under an Editor folder you should be good). The functions your are looking for

GetCloudScriptRevision

GetCloudScriptVersions

SetPublishedRevision

UpdateCloudScript

So to set this all up your dir structure could end up looking like

Assets

--Editor

----CloudScript

------.Source

---------YourCloudScript.js

------UnityCloudScriptTools

--------YourInspectorEditorScript.cs

I would get a second opinion on all of this to make sure it would work out how I expect. (I don't use Unity for managing Cloud Script files)

thub.nodes.view.add-new-comment
Joshua Strunk
marcos
harsh

People who like this

3 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Your Opinion Counts

    We would love to know what you need. Submit your ideas and upvote others to help us prioritize.

    Sign in to post a new idea

    Follow

    Follow This Idea

    No one has followed this yet.

    Related Ideas

    GitLab integration for CloudScript Content Management

    Internal code editor for cloud scripting

    cloudscript tasks on player segments should tally OKs and Fails

    Add PurchaseItem to the Server API

    Add ability to alert developers on Cloud Script Errors

    Adding or removing Friend friend with a list (and one request) instead of one by one

    Add GetContentList to server API (as admin API)

    GetStoreItems In CloudScript

    ModifyItemUses with multiple items

    Ability to update CustomData in multiple inventory items using only one API call.

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges